mongodb: use the new upstart setuid option
svn path=/nixos/trunk/; revision=32763
This commit is contained in:
parent
dc8ca0ea4a
commit
6240825e27
@ -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";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user