forked from mirrors/nixpkgs
fixed mongodb upstart task
svn path=/nixos/trunk/; revision=32683
This commit is contained in:
parent
b5dc3d520e
commit
e872efaa8d
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue