]> git.pld-linux.org Git - projects/rc-scripts.git/blob - init/rcS-sulogin.conf
move status all to function
[projects/rc-scripts.git] / init / rcS-sulogin.conf
1 description "rcS-sulogin - 'single-user' runlevel compatibility \
2 \
3 This task runs /bin/sh during 'single-user' mode, \
4 then continues to the default runlevel."
5
6 start on runlevel S
7 stop on runlevel [!S]
8
9 emits runlevel
10
11 console owner
12 script
13         exec /bin/sh
14 end script
15 post-stop script
16         if [ "$RUNLEVEL" = "S" ]; then
17                 runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab)
18                 [ -z "$runlevel" ] && runlevel="3"
19                 exec telinit $runlevel
20         fi
21 end script
22
23 # vi: ft=upstart
This page took 0.025774 seconds and 3 git commands to generate.