summaryrefslogtreecommitdiffstats
path: root/jobs.d/rc-multiuser
diff options
context:
space:
mode:
Diffstat (limited to 'jobs.d/rc-multiuser')
-rw-r--r--jobs.d/rc-multiuser19
1 files changed, 19 insertions, 0 deletions
diff --git a/jobs.d/rc-multiuser b/jobs.d/rc-multiuser
new file mode 100644
index 00000000..a6d13e56
--- /dev/null
+++ b/jobs.d/rc-multiuser
@@ -0,0 +1,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