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