nixpkgs-suyu/upstart-jobs/tomcat.nix
Sander van der Burg 406d3aafc5 Added deploydir to tomcat service
svn path=/nixos/trunk/; revision=10407
2008-01-30 14:38:27 +00:00

21 lines
317 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
";
}