summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-08-29 12:41:40 -0400
committerWilliam Hubbs <williamh@gentoo.org>2021-08-29 13:38:33 -0500
commit93777e58b134935a485214e4f13dce2f2cebb800 (patch)
tree49aec3a06806b3801ac12286497b711999282c1c
parentfix --debug option (diff)
downloadudev-gentoo-scripts-93777e58b134935a485214e4f13dce2f2cebb800.tar.gz
udev-gentoo-scripts-93777e58b134935a485214e4f13dce2f2cebb800.tar.bz2
udev-gentoo-scripts-93777e58b134935a485214e4f13dce2f2cebb800.zip
udev: unlink control socket after stopping udevd
Closes: https://bugs.gentoo.org/810928 Signed-off-by: Mike Gilbert <floppym@gentoo.org> Signed-off-by: William Hubbs <williamh@gentoo.org>
-rw-r--r--init.d/udev4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.d/udev b/init.d/udev
index 705d87c..724cb82 100644
--- a/init.d/udev
+++ b/init.d/udev
@@ -77,9 +77,9 @@ stop() {
get_udevd_binary || return 1
ebegin "Stopping ${name:-$RC_SVCNAME}"
udevadm control --exit ||
- start-stop-daemon --stop --exec "${command}" --pidfile "${pidfile}" &&
- rm -f "${pidfile}"
+ start-stop-daemon --stop --exec "${command}" --pidfile "${pidfile}"
eend $? "Failed to stop $RC_SVCNAME"
+ [ $? -eq 0 ] && rm -f "${pidfile}" /run/udev/control
}
reload() {