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