summaryrefslogtreecommitdiff
path: root/systemd/rpc-statd.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/rpc-statd.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/rpc-statd.service')
-rw-r--r--systemd/rpc-statd.service6
1 files changed, 1 insertions, 5 deletions
diff --git a/systemd/rpc-statd.service b/systemd/rpc-statd.service
index d5392b7..60d600f 100644
--- a/systemd/rpc-statd.service
+++ b/systemd/rpc-statd.service
@@ -7,12 +7,8 @@ After=network.target nss-lookup.target rpcbind.socket
PartOf=nfs-utils.service
-Wants=nfs-config.service
-After=nfs-config.service
-
[Service]
Environment=RPC_STATD_NO_NOTIFY=1
-EnvironmentFile=-/run/sysconfig/nfs-utils
Type=forking
PIDFile=/var/run/rpc.statd.pid
-ExecStart=/usr/sbin/rpc.statd $STATDARGS
+ExecStart=/usr/sbin/rpc.statd