mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
90f34e204d
svn path=/nixos/trunk/; revision=10495
23 lines
315 B
Nix
23 lines
315 B
Nix
args: with args;
|
|
|
|
let
|
|
|
|
cfg = config.services.ejabberd;
|
|
|
|
ejabberdService = import ../services/ejabberd {
|
|
inherit (cfg) user;
|
|
inherit (pkgs) stdenv erlang ejabberd su;
|
|
};
|
|
|
|
in
|
|
{
|
|
name = "ejabberd";
|
|
job = "
|
|
description \"EJabberd server\"
|
|
|
|
stop on shutdown
|
|
|
|
respawn ${ejabberdService}/bin/control start
|
|
";
|
|
}
|