Could you enlighten me on what exactly you mean by sating "read INIT_HALT" ?
I have rc0 job:
start on runlevel 0
stop on runlevel
console output
script
set $(runlevel || true)
if [ "$2" != "0" ] && [ "$2" != "6" ]; then
set $(runlevel --set 0 || true)
fi
if [ "$1" != "unknown" ]; then PREVLEVEL=$1 RUNLEVEL=$2
export PREVLEVEL RUNLEVEL
fi
exec /etc/rc.d/rc 0
end script
but /etc/rc.d/rc isn't called. I guess I even tested echo "blabla" on beginning of the "script" part. Note that "reboot" command runs rc script fine. I assume that on poweroff /etc/rc.d/rc also should be run, right?
Could you enlighten me on what exactly you mean by sating "read INIT_HALT" ?
I have rc0 job:
start on runlevel 0
stop on runlevel
console output
script
set $(runlevel || true)
if [ "$2" != "0" ] && [ "$2" != "6" ]; then
set $(runlevel --set 0 || true)
fi
if [ "$1" != "unknown" ]; then
PREVLEVEL= $1
RUNLEVEL= $2
export PREVLEVEL RUNLEVEL
fi
exec /etc/rc.d/rc 0
end script
but /etc/rc.d/rc isn't called. I guess I even tested echo "blabla" on beginning of the "script" part. Note that "reboot" command runs rc script fine. I assume that on poweroff /etc/rc.d/rc also should be run, right?