Added tomcat service to NixOS

svn path=/nixos/trunk/; revision=10403
This commit is contained in:
Sander van der Burg 2008-01-30 11:00:59 +00:00
parent b3ff0f8a59
commit c1f619a087

21
upstart-jobs/tomcat.nix Normal file
View File

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