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