summaryrefslogtreecommitdiffstats
path: root/event.d/sulogin
diff options
context:
space:
mode:
Diffstat (limited to 'event.d/sulogin')
-rw-r--r--event.d/sulogin18
1 files changed, 18 insertions, 0 deletions
diff --git a/event.d/sulogin b/event.d/sulogin
new file mode 100644
index 00000000..931fb062
--- /dev/null
+++ b/event.d/sulogin
@@ -0,0 +1,18 @@
+# sulogin - rescue mode
+#
+# This task ensures that should the system fail to have any active jobs
+# that the system administrator can rescue it; by giving them a shell.
+
+#start on stalled
+
+exec /sbin/sulogin
+console owner
+
+pre-start script
+ echo
+ echo "The system has reached a state where there are no jobs running."
+ echo "A shell will be spawned so that you may start such jobs that are"
+ echo "necessary."
+ echo
+ echo "Type 'exit' when finished."
+end script