# rcS - runlevel compatibility
#
# This task runs the old sysv-rc startup scripts.

start on startup

stop on shutdown
stop on runlevel-2
stop on runlevel-3
stop on runlevel-4
stop on runlevel-5

# Note: there can be no previous runlevel here, if we have one it's bad
# information (we enter rc1 not rcS for maintenance).  Run /etc/init.d/rc
# without information so that it defaults to previous=N runlevel=S.
script
	runlevel --set S >/dev/null || true
	exec /etc/init.d/rcS
end script
