mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
406d3aafc5
svn path=/nixos/trunk/; revision=10407
22 lines
317 B
Nix
22 lines
317 B
Nix
args: with args;
|
|
|
|
let
|
|
|
|
cfg = config.services.tomcat;
|
|
tomcatService = import ../services/tomcat {
|
|
inherit (pkgs) stdenv jdk tomcat6 su;
|
|
inherit (cfg) baseDir user deployFrom;
|
|
};
|
|
|
|
in
|
|
{
|
|
name = "tomcat";
|
|
job = "
|
|
description \"Apache Tomcat server\"
|
|
|
|
stop on shutdown
|
|
|
|
respawn ${tomcatService}/bin/control start
|
|
";
|
|
}
|