From 93777e58b134935a485214e4f13dce2f2cebb800 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Sun, 29 Aug 2021 12:41:40 -0400 Subject: udev: unlink control socket after stopping udevd Closes: https://bugs.gentoo.org/810928 Signed-off-by: Mike Gilbert Signed-off-by: William Hubbs --- init.d/udev | 4 ++-- 1 file 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() { -- cgit v1.2.3-65-gdbad