2008-01-28 15:16:14 +00:00
|
|
|
args: with args;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.services.jboss;
|
|
|
|
jbossService = import ../services/jboss {
|
2008-07-23 15:13:27 +01:00
|
|
|
inherit (pkgs) stdenv jboss su;
|
|
|
|
inherit (cfg) tempDir logDir libUrl deployDir serverDir user useJK;
|
2008-01-28 15:16:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
2008-07-23 15:13:27 +01:00
|
|
|
name = "jboss";
|
|
|
|
job = "
|
2008-01-28 15:16:14 +00:00
|
|
|
description \"JBoss server\"
|
|
|
|
|
|
|
|
stop on shutdown
|
|
|
|
|
|
|
|
respawn ${jbossService}/bin/control start
|
2008-07-23 15:13:27 +01:00
|
|
|
";
|
2008-01-28 15:16:14 +00:00
|
|
|
}
|