mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
8d5884e01f
svn path=/nixos/trunk/; revision=10309
22 lines
327 B
Nix
22 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
|
|
";
|
|
}
|