nixpkgs-suyu/upstart-jobs/tomcat.nix
Eelco Dolstra 20881fe84b * Indentation.
svn path=/nixos/trunk/; revision=10757
2008-02-19 16:52:08 +00:00

23 lines
346 B
Nix

args: with args;
let
cfg = config.services.tomcat;
tomcatService = import ../services/tomcat {
inherit (pkgs) stdenv jdk tomcat6 su;
inherit (cfg) baseDir user deployFrom;
};
in
{
name = "tomcat";
job = ''
description "Apache Tomcat server"
stop on shutdown
respawn ${tomcatService}/bin/control start
'';
}