https://bugzilla.novell.com/show_bug.cgi?id=331701#c2
--- Comment #2 from Julian Medina
/success
# Stop blogd before umounting /var test -x /sbin/blogd && killproc -QUIT /sbin/blogd # give processes in front a chance to quit hupon="" for tty in tty1 tty2 tty3 tty4 tty5 tty6; do test -w /dev/$tty || continue test -c /dev/$tty || continue > /dev/$tty > /dev/null 2>&1 || continue hupon="${hupon:+$hupon }/dev/$tty" done test -z "$hupon" || fuser -sk -HUP $hupon echo "Sending all processes the TERM signal..." killall5 -15 echo -e "$rc_done_up" # Wait between last SIGTERM and the next SIGKILL declare -i etime=$SECONDS if test -f /fastboot ; then etime=$((etime+2)) else etime=$((etime+6)) fi ppid=$$ parent_processes="$ppid" while test $ppid -ne 0; do read -t 1 pid comm state ppid rest < /proc/$ppid/stat parent_processes="${parent_processes:+$parent_processes }${ppid}" done for comm in /sbin/splash /sbin/blogd; do ppid="$(/sbin/pidofproc $comm)" || continue parent_processes="${parent_processes:+$parent_processes }${ppid}" done unset comm state ppid rest while test $SECONDS -lt $etime; do left_processes="" for proc in /proc/[0-9]* ; do pid=${proc##*/} case "${parent_processes// /:}" in *:${pid}:*) continue esac /bin/ls -L ${proc}/exe > /dev/null 2>&1 || continue left_processes="${left_processes:+$left_processes }${pid}" done test -n "${left_processes}" || break usleep 500000 done unset pid proc etime parent_processes left_processes echo "Sending all processes the KILL signal..." killall5 -9 echo -e "$rc_done_up" # Redirect our mesages to default console test -n "$REDIRECT" && exec 0<> $REDIRECT 1>&0 2>&0 # # call modules in boot.d via K* symlinks # (reverse sequence) # if test -d /etc/init.d/boot.d/ ; then for i in /etc/init.d/boot.d/K*; do test -f $i || continue if test -x "$i" ; then # Active boot scripts, should have their own messages $i stop else # Old boot scripts, may not have any message echo Skipping $i, not executable fi done fi # kill splash animation test "$SPLASH" = yes && /sbin/splash -q # on umsdos fs this would lead to an error message, so direct errors to # /dev/null mount -no remount,ro / 2> /dev/null sync # show "the system is down" message test "$SPLASH" = yes && /sbin/splash -q -p 65535 -t "isdown" # we do not really unmount /proc any more since halt(8) might need it #umount -anvt proc # Make reboot noise and wait a few seconds to give harddisks the chance # to really flush their buffers before power goes down. if test -n "$REDIRECT" ; then case "$HALT_SOUND" in "yes"|"quint") echo -en "\033[10;393]\a\033[10;262]" ;; "octave") for tone in 524 491 440 393 349 328 295 262; do echo -en "\033[10;${tone}]\a" usleep 125000 done echo -en "\033[10;262]" ;; "no") ;; *) echo -en "\033[10;440]\a" usleep 250000 ;; esac else test "$HALT_SOUND" = "no" || echo -en "\a" fi echo $message test "$HALT_SOUND" = "no" || echo -en "\a" test -n "$HALT_POWERDOWN_INSERT" && $HALT_POWERDOWN_INSERT # Set system console back to intial value test -n "$REDIRECT" -a -n "$CONSOLE" && setconsole $REDIRECT < $CONSOLE # Now talk to kernel exec $command -d -f -n $opts -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.