mongodb: use the new upstart setuid option

svn path=/nixos/trunk/; revision=32763
This commit is contained in:
Mathijs Kwik 2012-03-04 12:58:09 +00:00
parent dc8ca0ea4a
commit 6240825e27

View File

@ -96,7 +96,7 @@ in
jobs.mongodb =
{ description = "MongoDB server";
daemonType = "fork";
daemonType = "daemon";
startOn = "filesystem";
@ -108,7 +108,9 @@ in
fi
'';
exec = "${pkgs.shadow}/bin/su ${cfg.user} -c \"${mongodb}/bin/mongod --config ${mongoCnf}\"";
path = [mongodb];
exec = "mongod --config ${mongoCnf} --fork";
setuid = cfg.user;
extraConfig = "kill timeout 10";
};