3
0
Fork 0
forked from mirrors/nixpkgs

fixed mongodb upstart task

svn path=/nixos/trunk/; revision=32683
This commit is contained in:
Peter Simons 2012-02-28 17:43:54 +00:00
parent b5dc3d520e
commit e872efaa8d

View file

@ -96,8 +96,7 @@ in
jobs.mongodb =
{ description = "MongoDB server";
daemonType = "none";
respawn = false; # seems to interfere with normal stopping
daemonType = "fork";
startOn = "filesystem";
@ -110,7 +109,6 @@ in
'';
exec = "${pkgs.shadow}/bin/su ${cfg.user} -c \"${mongodb}/bin/mongod --config ${mongoCnf}\"";
preStop = "${pkgs.shadow}/bin/su ${cfg.user} -c \"${mongodb}/bin/mongod --config ${mongoCnf} --shutdown\"";
extraConfig = "kill timeout 10";
};