* nfsd and statd do not need to be stopped when portmap stops.

svn path=/nixos/trunk/; revision=33167
This commit is contained in:
Eelco Dolstra 2012-03-16 17:43:18 +00:00
parent 097c656361
commit 5a36c25e9f
2 changed files with 4 additions and 15 deletions

View File

@ -10,19 +10,6 @@ let
exports = pkgs.writeText "exports" cfg.server.exports; exports = pkgs.writeText "exports" cfg.server.exports;
/*
Description at http://nfs.sourceforge.net/nfs-howto/ar01s03.html :
"If your distribution does not include them in the startup scripts, then then
you should add them, configured to start in the following order:
rpc.portmap
rpc.mountd, rpc.nfsd
rpc.statd, rpc.lockd (if necessary), and
rpc.rquotad"
*/
in in
{ {
@ -106,7 +93,7 @@ in
{ description = "Kernel NFS server"; { description = "Kernel NFS server";
startOn = "started portmap"; startOn = "started portmap";
stopOn = "stopped statd or stopping portmap"; stopOn = "stopped statd";
preStart = preStart =
'' ''
@ -166,7 +153,7 @@ in
"started mountd and started nfsd" "started mountd and started nfsd"
else else
"started portmap"; "started portmap";
stopOn = "stopping nfsd or stopping portmap"; stopOn = "stopping nfsd";
preStart = preStart =
'' ''

View File

@ -51,6 +51,8 @@ in
config = mkIf config.services.portmap.enable { config = mkIf config.services.portmap.enable {
environment.systemPackages = [ portmap ];
users.extraUsers = singleton users.extraUsers = singleton
{ name = "portmap"; { name = "portmap";
inherit uid; inherit uid;