File 0002-systemd-rpc-statd.service-add-IgnoreOnIsolate-yes.patch of Package nfs-utils.12300

From bd41471256d5c2abb3312dfe7e84bf3295472392 Mon Sep 17 00:00:00 2001
From: NeilBrown <neilb@suse.com>
Date: Wed, 28 Nov 2018 14:46:17 +1100
Subject: [PATCH] systemd/rpc-statd.service - add IgnoreOnIsolate=yes

If you run
  systemctl isolate multi-user.target
then all services not needed by multi-user.target are stopped.
This currently includes rpc-statd, which is a problem.

Systemd doesn't know that rpc-statd.service is needed by
multi-user.target, or more accurately nfs-client.target, because
sometimes it isn't.
It is started dynamically by mount.nfs when a v3 or v2 filesystem
is mounted (not when v4 is mounted) - so systemd doesn't see the connection.

mount units default to IgnoreOnIsolate=yes, as mounts are expected to be
left mounted when you run "systemctl isolate ....".  As rpc-statd.service
is started by a mount, and needed for some mounts, it makes sense for it
to declare IgnoreOnIsolate=yes too.
With this declaration in place rpc.statd remains running when
  systemctl isolate multi-user.target
is run.

Signed-off-by: NeilBrown <neilb@suse.com>
---
 systemd/rpc-statd.service |    1 +
 1 file changed, 1 insertion(+)

--- a/systemd/rpc-statd.service
+++ b/systemd/rpc-statd.service
@@ -6,6 +6,7 @@ Requires=nss-lookup.target rpcbind.socke
 After=network.target nss-lookup.target rpcbind.socket
 
 PartOf=nfs-utils.service
+IgnoreOnIsolate=yes
 
 Wants=nfs-config.service
 After=nfs-config.service
openSUSE Build Service is sponsored by