nixpkgs/upstart-jobs/jboss.nix
Eelco Dolstra 5ec1fa2060 * Tabs considered harmful.
svn path=/nixos/trunk/; revision=12407
2008-07-23 14:13:27 +00:00

22 lines
362 B
Nix

args: with args;
let
cfg = config.services.jboss;
jbossService = import ../services/jboss {
inherit (pkgs) stdenv jboss su;
inherit (cfg) tempDir logDir libUrl deployDir serverDir user useJK;
};
in
{
name = "jboss";
job = "
description \"JBoss server\"
stop on shutdown
respawn ${jbossService}/bin/control start
";
}