summaryrefslogtreecommitdiff
path: root/net-fs/nfs-utils/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-02-16 23:37:06 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-02-16 23:37:06 +0000
commitd228f661892a9e55a86f00c2c14625490631d797 (patch)
tree1ff5297945a5544ca5b30a9206eb788ab4c431d7 /net-fs/nfs-utils/files
parent3b00f2d2f95f5d6ff01e71259eb94fa714a92232 (diff)
gentoo auto-resync : 16:02:2024 - 23:37:06
Diffstat (limited to 'net-fs/nfs-utils/files')
-rw-r--r--net-fs/nfs-utils/files/nfs.initd12
1 files changed, 5 insertions, 7 deletions
diff --git a/net-fs/nfs-utils/files/nfs.initd b/net-fs/nfs-utils/files/nfs.initd
index 6540c9f92075..7c1de560d1da 100644
--- a/net-fs/nfs-utils/files/nfs.initd
+++ b/net-fs/nfs-utils/files/nfs.initd
@@ -1,13 +1,13 @@
#!/sbin/openrc-run
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
extra_started_commands="reload"
# The binary locations
exportfs=/usr/sbin/exportfs
- mountd=/usr/sbin/rpc.mountd
- nfsd=/usr/sbin/rpc.nfsd
+mountd=/usr/sbin/rpc.mountd
+nfsd=/usr/sbin/rpc.nfsd
smnotify=/usr/sbin/sm-notify
depend() {
@@ -106,13 +106,11 @@ stop() {
eend $?
ret=$((ret + $?))
- # nfsd sets its process name to [nfsd] so don't look for $nfsd
ebegin "Stopping NFS daemon"
- start-stop-daemon --stop --name nfsd --user root --signal 2
+ # Do not attempt to signal kernel nfsd threads directly, #924309
+ ${nfsd} 0
eend $?
ret=$((ret + $?))
- # in case things don't work out ... #228127
- rpc.nfsd 0
# When restarting the NFS server, running "exportfs -ua" probably
# isn't what the user wants. Running it causes all entries listed