summaryrefslogtreecommitdiff
path: root/systemd/nfs-idmapd.service
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2016-12-06 13:27:22 -0500
committerSteve Dickson <steved@redhat.com>2016-12-20 13:29:04 -0500
commit2662e1ba98707014b6167e1e5bd3162d6d8f52af (patch)
tree93b0491ca662eefaa0f14eec14420909400c2909 /systemd/nfs-idmapd.service
parentd040649d9ced2a0e5aacd879ce227641ac77343d (diff)
downloadnfs-utils-2662e1ba98707014b6167e1e5bd3162d6d8f52af.tar.gz
systemd: Remove the nfs-config.service
Now that we have /etc/nfs.conf, a lot of configuration can be read directly. So nfs-config isn't really needed any more. Some distributions allow command-line arguments for various daemons to be set in an environment file (/etc/sysconfig, /etc/defaults). Passing these through /etc/nfs.conf is not possible. Instead, a distro that needs this functionality can create drop-in files which select the required value. As no commands are given default arguments by systemd unit files, the drop-in can just add distro-specific args. For example /lib/systemd/system/nfs-mountd.service.d/local.conf [Service] EnvironmentFile=/etc/sysconfig/nfs ExecStart= ExecStart=/usr/sbin/rpc.mountd $RPCMOUNTDOPTS Note the need for the empty assignment to remove existing definitions first. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'systemd/nfs-idmapd.service')
-rw-r--r--systemd/nfs-idmapd.service6
1 files changed, 1 insertions, 5 deletions
diff --git a/systemd/nfs-idmapd.service b/systemd/nfs-idmapd.service
index df3dd9d..acca86b 100644
--- a/systemd/nfs-idmapd.service
+++ b/systemd/nfs-idmapd.service
@@ -6,10 +6,6 @@ After=var-lib-nfs-rpc_pipefs.mount local-fs.target
BindsTo=nfs-server.service
-Wants=nfs-config.service
-After=nfs-config.service
-
[Service]
-EnvironmentFile=-/run/sysconfig/nfs-utils
Type=forking
-ExecStart=/usr/sbin/rpc.idmapd $RPCIDMAPDARGS
+ExecStart=/usr/sbin/rpc.idmapd