]> git.pld-linux.org Git - projects/rc-scripts.git/blame - init/rcS.conf
fix tag pushing in make-tag.sh
[projects/rc-scripts.git] / init / rcS.conf
CommitLineData
3f2e803a
JK
1description "rcS - runlevel compatibility \
2\
3This task runs the old sysv-rc startup scripts."
4
5start on startup
6
7stop on runlevel
8
9emits all-swaps filesystem local-filesystems root-filesystem virtual-filesystems runlevel
d8106480 10emits pld.sysinit-done
3f2e803a
JK
11
12task
13
14# Note: there can be no previous runlevel here, if we have one it's bad
15# information (we enter rc1 not rcS for maintenance). Run /etc/rc.d/rc
16# without information so that it defaults to previous=N runlevel=S.
17console output
18exec /etc/rc.d/rc.sysinit
2109dfea 19
3f2e803a
JK
20post-stop script
21 if [ "$UPSTART_EVENTS" = "startup" ]; then
22 runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab)
23 [ -z "$runlevel" ] && runlevel="3"
24 for t in $(cat /proc/cmdline); do
25 case $t in
26 -s|single|S|s) runlevel="S" ;;
27 [1-9]) runlevel="$t" ;;
28 esac
29 done
30 exec telinit $runlevel
31 fi
32end script
This page took 0.084894 seconds and 4 git commands to generate.