From 76bb11cb8b5374ff2bba79afc80c408f61779f0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20B=C3=A4chler?= Date: Mon, 24 Aug 2009 19:32:30 +0200 Subject: Remove support for static filesystem and make code in rc.single look like the code in rc.sysinit/rc.shutdown udev has been a dependency of initscripts for a long time, the system won't work without it anyway. Thus remove the "Using static filesystem" message which does nothing anyway and always try to start udevd At the same time, update the killall5 and udev start code in rc.single --- rc.single | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'rc.single') diff --git a/rc.single b/rc.single index fd74487..50b7cfb 100755 --- a/rc.single +++ b/rc.single @@ -26,27 +26,33 @@ if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then fi if [ "$PREVLEVEL" != "N" ]; then + # Terminate all processes stat_busy "Sending SIGTERM To Processes" /sbin/killall5 -15 &> /dev/null /bin/sleep 5 stat_done stat_busy "Sending SIGKILL To Processes" - /sbin/killall5 -9 + /sbin/killall5 -9 &> /dev/null /bin/sleep 1 stat_done - if [ -x /sbin/udevadm ]; then - stat_busy "Starting UDev Daemon" - /sbin/udevd --daemon - stat_done - stat_busy "Loading UDev uevents" - /sbin/udevadm trigger + stat_busy "Starting UDev Daemon" + /sbin/udevd --daemon + stat_done + + # Trigger udev uevents + if /bin/pidof -o %PPID /sbin/udevd >/dev/null; then + stat_busy "Triggering UDev uevents" + /sbin/udevadm trigger + stat_done + fi + + # Wait for udev uevents + if /bin/pidof -o %PPID /sbin/udevd >/dev/null; then + stat_busy "Waiting for UDev uevents to be processed" /sbin/udevadm settle stat_done - else - # Static /dev, our last resort - status "Using static /dev filesystem" /bin/true fi # try syslog-NG first, then fall back to good ol' syslogd -- cgit v1.2.3