Skip to contentSkip to conversation

Add RemainAfterExit to two services.

PATCH In review NeilBrown 2 participants 2 messages Oct 6, 2017 – Oct 12, 2017

Subsystems (2)
lore
Share & tools
lore

NeilBrown

author
#0 lore raw

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
index 5241f7b5d58e..4548283377d0 100644
@@ -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
index 687fe31140c0..aad4c0d29efe 100644
@@ -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
#1 lore raw
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

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
index 5241f7b5d58e..4548283377d0 100644
@@ -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
index 687fe31140c0..aad4c0d29efe 100644
@@ -13,3 +13,4 @@ PartOf=nfs-utils.service
 [Service]
 Type=forking
 ExecStart=-/usr/sbin/sm-notify
+RemainAfterExit=yes