Add RemainAfterExit to two services.
Subsystems (2)
PATCH 1/1 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.
--- systemd/auth-rpcgss-module.service | 1 + systemd/rpc-statd-notify.service | 1 + 2 files changed, 2 insertions(+)
systemd/auth-rpcgss-module.service +1 -0
@@ -14,3 +14,4 @@ ConditionPathExists=/etc/krb5.keytab [Service] Type=oneshot ExecStart=/sbin/modprobe -q auth_rpcgss +RemainAfterExit=yes
systemd/rpc-statd-notify.service +1 -0
@@ -13,3 +13,4 @@ PartOf=nfs-utils.service [Service] Type=forking ExecStart=-/usr/sbin/sm-notify +RemainAfterExit=yes
Signature · 1 line
2.14.0.rc0.dirty
Quoted 12 lines · NeilBrown
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.
Quoted 1 line
Signed-off-by NeilBrown <[email protected]>
Committed...
steved.
Quoted 24 lines
--- systemd/auth-rpcgss-module.service | 1 + systemd/rpc-statd-notify.service | 1 + 2 files changed, 2 insertions(+)systemd/auth-rpcgss-module.service +1
-0@@ -14,3 +14,4 @@ ConditionPathExists=/etc/krb5.keytab [Service] Type=oneshot ExecStart=/sbin/modprobe -q auth_rpcgss +RemainAfterExit=yessystemd/rpc-statd-notify.service +1
-0@@ -13,3 +13,4 @@ PartOf=nfs-utils.service [Service] Type=forking ExecStart=-/usr/sbin/sm-notify +RemainAfterExit=yes