summaryrefslogtreecommitdiffstats
path: root/jobs.d/rc-multiuser
blob: a6d13e566d50294dfd4415194e2362f64b127f2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# rc-multiuser - multiuser runlevel compatibility
#
# This task runs the old sysv-rc runlevel 2+ ("multi-user") scripts.  It
# is usually started by the telinit compatibility wrapper.

start on runlevel [2345]
stop on runlevel
task

export PREVLEVEL
export RUNLEVEL

console output
script
	runlevel --set $RUNLEVEL || true
	export PREVLEVEL RUNLEVEL

	exec /etc/rc.d/rc $RUNLELVEL
end script