nixpkgs/upstart-jobs/ejabberd.nix

23 lines
315 B
Nix
Raw Normal View History

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
";
}