summaryrefslogtreecommitdiffstats
path: root/event.d/sulogin
diff options
context:
space:
mode:
authorEun-Ju KIm <eukim@redhat.com>2008-05-09 03:16:09 +0000
committerEun-Ju KIm <eukim@redhat.com>2008-05-09 03:16:09 +0000
commit20ae37592f30516cb23d138ff2d60cdc3f490723 (patch)
tree7a062d877a43e57a1d26bb737e0dadb6a51f6b3f /event.d/sulogin
parent1bd1096da0802b74cf738c7dab22667abf951c97 (diff)
parent73a91036b96450f976c5e45d3478d4b6f905c79a (diff)
downloadinitscripts-20ae37592f30516cb23d138ff2d60cdc3f490723.tar.gz
initscripts-20ae37592f30516cb23d138ff2d60cdc3f490723.tar.xz
initscripts-20ae37592f30516cb23d138ff2d60cdc3f490723.zip
Merge branch 'master' of ssh://git.fedorahosted.org/git/initscripts
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