aboutsummaryrefslogtreecommitdiffstats
path: root/event.d/serial
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-03-10 23:25:23 -0400
committerBill Nottingham <notting@redhat.com>2008-03-10 23:25:23 -0400
commitd69a228ea0dc6f2a54f7724e8ab84452c23c57f2 (patch)
tree0c969ee8f9259e64c36ac8a1bad599f0f351ff8f /event.d/serial
parent60e464627b1db3def07543df31af2e5e09ce9b3e (diff)
downloadinitscripts-d69a228ea0dc6f2a54f7724e8ab84452c23c57f2.tar
initscripts-d69a228ea0dc6f2a54f7724e8ab84452c23c57f2.tar.gz
initscripts-d69a228ea0dc6f2a54f7724e8ab84452c23c57f2.tar.bz2
initscripts-d69a228ea0dc6f2a54f7724e8ab84452c23c57f2.tar.xz
initscripts-d69a228ea0dc6f2a54f7724e8ab84452c23c57f2.zip
Add the serial upstart event handler.
Diffstat (limited to 'event.d/serial')
-rw-r--r--event.d/serial11
1 files changed, 11 insertions, 0 deletions
diff --git a/event.d/serial b/event.d/serial
new file mode 100644
index 00000000..6c29af04
--- /dev/null
+++ b/event.d/serial
@@ -0,0 +1,11 @@
+
+start on fedora.serial-console-available *
+stop on runlevel [016]
+
+instance
+exec /sbin/agetty /dev/$1 $2 vt100-nav
+post-stop script
+ if [ "$UPSTART_EVENT" != "${UPSTART_EVENT##fedora.serial-console-available}" ]; then
+ initctl emit --no-wait fedora.serial-console-available $1 $2
+ fi
+end script