Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
nfs-utils.19253
0002-Let-systemd-know-when-rpc.statd-is-needed....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-Let-systemd-know-when-rpc.statd-is-needed.patch of Package nfs-utils.19253
From b468dda439a02c4d1b7f85a0be6c0a227d16c2de Mon Sep 17 00:00:00 2001 From: NeilBrown <neilb@suse.com> Date: Fri, 30 Nov 2018 16:38:45 +1100 Subject: [PATCH] Let systemd know when rpc.statd is needed. A recent change to set IgnoreOnIsolate for rpc-statd isn't quite sufficient (though it doesn't hurt). While rpc-statd does remain when systemctl isolate multi-user is run, its dependencies don't remain, so rpcbind might get killed, which makes rpc.statd rather useless. The reason this is all an issue is that systemd doesn't know that rpc-statd is needed - mount.nfs explicitly starts it rather than having a dependency start it. This can be rectified by explicitly telling systemd about the dependency using "systemctl add-wants". This can be done in the start-statd script, at the same time that rpc-statd is started. As --runtime dependency is used so that it doesn't persist across reboots. A new dependency will be created on next boot if an NFSv3 filesystem is mounted. With this in place, both rpc.statd and rpcbind remain. Actually, rpcbind.service is stopped, but rpcbind.socket remains, and when anything tries to contact rpcbind, rpcbind.service is automatically started and it re-reads its saved state. Signed-off-by: NeilBrown <neilb@suse.com> --- utils/statd/start-statd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/utils/statd/start-statd +++ b/utils/statd/start-statd @@ -6,7 +6,10 @@ # site. PATH=/bin:/usr/bin:/sbin:/usr/sbin if systemctl start rpc-statd.service -then : +then + # Ensure systemd knows not to stop rpc.statd or its dependencies + # on 'systemctl isolate ..' + systemctl add-wants --runtime remote-fs.target rpc-statd.service else exec rpc.statd --no-notify fi
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor