nixpkgs/upstart-jobs/tomcat.nix

24 lines
346 B
Nix
Raw Normal View History

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
'';
}