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