2008-01-30 12:00:59 +01:00
|
|
|
args: with args;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.services.tomcat;
|
|
|
|
tomcatService = import ../services/tomcat {
|
|
|
|
inherit (pkgs) stdenv jdk tomcat6 su;
|
2008-01-30 15:38:27 +01:00
|
|
|
inherit (cfg) baseDir user deployFrom;
|
2008-01-30 12:00:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
|
|
|
name = "tomcat";
|
|
|
|
job = "
|
|
|
|
description \"Apache Tomcat server\"
|
|
|
|
|
|
|
|
stop on shutdown
|
|
|
|
|
|
|
|
respawn ${tomcatService}/bin/control start
|
|
|
|
";
|
|
|
|
}
|