3 # /etc/rc.single: single-user startup script
9 if [ "$PREVLEVEL" = "2" ]; then
11 if [ "${SERVICES[*]}" ]; then
12 for service
in "${SERVICES[@]}"; do
13 R_SERVICES
=($service ${R_SERVICES[@]})
15 for service
in "${R_SERVICES[@]}"; do
16 /etc
/rc.d
/$service stop
&> /tmp
/rc.$$
17 /usr
/bin
/logger
-t $service -f /tmp
/rc.$$
23 if [ "$PREVLEVEL" != "N" ]; then
24 # Terminate all processes
30 /bin
/mount
-n -t proc none
/proc
31 /bin
/mount
-n -t sysfs none
/sys
34 if [ -f /etc
/rc.d
/$SYSLOG -a -x /etc
/rc.d
/$SYSLOG ]; then
35 /etc
/rc.d
/$SYSLOG start
&> /dev
/null
39 if [ "$RUNLEVEL" = "1" ]; then
40 # Enter single-user mode