nixpkgs-suyu/upstart-jobs/jboss.nix
Sander van der Burg 8d5884e01f Added JBoss service
svn path=/nixos/trunk/; revision=10309
2008-01-28 15:16:14 +00:00

21 lines
327 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
";
}