mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
5ec1fa2060
svn path=/nixos/trunk/; revision=12407
21 lines
362 B
Nix
21 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
|
|
";
|
|
}
|