mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 17:53:14 +00:00
Added tomcat service to NixOS
svn path=/nixos/trunk/; revision=10403
This commit is contained in:
parent
b3ff0f8a59
commit
c1f619a087
21
upstart-jobs/tomcat.nix
Normal file
21
upstart-jobs/tomcat.nix
Normal 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
|
||||||
|
";
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user