summaryrefslogtreecommitdiff
path: root/systemd/rpc-statd.service
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2016-12-06 13:22:47 -0500
committerSteve Dickson <steved@redhat.com>2016-12-20 13:29:04 -0500
commitd040649d9ced2a0e5aacd879ce227641ac77343d (patch)
tree6e52b5097664df8d8e5099d095e8beabfff14796 /systemd/rpc-statd.service
parent563a7de05a61f5e57e636d4063592e6f0fde9afb (diff)
downloadnfs-utils-d040649d9ced2a0e5aacd879ce227641ac77343d.tar.gz
statd: allow --no-notify to be passed via environment variable.
The significant value of allowing this is that it means that for default operation, systemd unit files do not need to pass any options to any programs. The purpose of this will become apparent in the next patch. 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.service3
1 files changed, 2 insertions, 1 deletions
diff --git a/systemd/rpc-statd.service b/systemd/rpc-statd.service
index a02f5c4..d5392b7 100644
--- a/systemd/rpc-statd.service
+++ b/systemd/rpc-statd.service
@@ -11,7 +11,8 @@ 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 --no-notify $STATDARGS
+ExecStart=/usr/sbin/rpc.statd $STATDARGS