diff options
author | NeilBrown <neilb@suse.com> | 2017-10-12 10:08:31 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2017-10-12 10:19:08 -0400 |
commit | fe375ac038f8dfce01131e3c67c42c73b8838f96 (patch) | |
tree | af221a728093aa34ff0e32ff2734f7a6c6610a4a | |
parent | 8110103404b35d9e86057ef0764f8aa87585f455 (diff) | |
download | nfs-utils-fe375ac038f8dfce01131e3c67c42c73b8838f96.tar.gz nfs-utils-fe375ac038f8dfce01131e3c67c42c73b8838f96.tar.xz nfs-utils-fe375ac038f8dfce01131e3c67c42c73b8838f96.zip |
systemd: Add RemainAfterExit to two services
Both auth-rpcgss-module and rpc-statd-notify only
ever need to be run once - the effect they have
is permanent.
We can give this information to systemd by setting
RemainAfterExit=yes
This avoids the minor cost of running them a second time
if something "Wants" either service after it was first run,
(e.g. both client and server startup can Want these),
and avoids systemd complaining that it restarts to fast
if multiple Wants happen at nearly the same time.
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | systemd/auth-rpcgss-module.service | 1 | ||||
-rw-r--r-- | systemd/rpc-statd-notify.service | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/systemd/auth-rpcgss-module.service b/systemd/auth-rpcgss-module.service index 5241f7b..4548283 100644 --- a/systemd/auth-rpcgss-module.service +++ b/systemd/auth-rpcgss-module.service @@ -14,3 +14,4 @@ ConditionPathExists=/etc/krb5.keytab [Service] Type=oneshot ExecStart=/sbin/modprobe -q auth_rpcgss +RemainAfterExit=yes diff --git a/systemd/rpc-statd-notify.service b/systemd/rpc-statd-notify.service index 687fe31..aad4c0d 100644 --- a/systemd/rpc-statd-notify.service +++ b/systemd/rpc-statd-notify.service @@ -13,3 +13,4 @@ PartOf=nfs-utils.service [Service] Type=forking ExecStart=-/usr/sbin/sm-notify +RemainAfterExit=yes |