mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
mongodb: workaround for shutdown issues
svn path=/nixos/trunk/; revision=32083
This commit is contained in:
parent
4249f803ad
commit
4f7985a1bd
@ -96,9 +96,10 @@ in
|
||||
|
||||
jobs.mongodb =
|
||||
{ description = "MongoDB server";
|
||||
daemonType = "none";
|
||||
respawn = false; # seems to interfere with normal stopping
|
||||
|
||||
startOn = "filesystem";
|
||||
daemonType = "daemon";
|
||||
|
||||
preStart =
|
||||
''
|
||||
@ -108,8 +109,8 @@ in
|
||||
fi
|
||||
'';
|
||||
|
||||
exec = "${pkgs.shadow}/bin/su ${cfg.user} -c \"${mongodb}/bin/mongod --config ${mongoCnf} --fork\"";
|
||||
preStop = "${pkgs.shadow}/bin/su ${cfg.user} -c \"${mongodb}/bin/mongod --config ${mongoCnf} --shutdown\" &";
|
||||
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 New Issue
Block a user