summaryrefslogtreecommitdiffstats
path: root/event.d/serial
diff options
context:
space:
mode:
authorCasey Dahlin <cdahlin@redhat.com>2008-07-23 09:48:23 -0400
committerCasey Dahlin <cdahlin@redhat.com>2008-07-23 09:48:23 -0400
commit01fecfecdb440d81435690c63d28909c5edd34de (patch)
tree0700ba7f0da1a17e974ad77826f8011b7e77443f /event.d/serial
parent51f5d4923f3ab0025708df3d20efd45fe5437e92 (diff)
downloadinitscripts-master.tar.gz
initscripts-master.tar.xz
initscripts-master.zip
Update for Upstart 0.5.0HEADmaster
New job definitions, in a new location, in a new format
Diffstat (limited to 'event.d/serial')
-rw-r--r--event.d/serial29
1 files changed, 0 insertions, 29 deletions
diff --git a/event.d/serial b/event.d/serial
deleted file mode 100644
index 6869090e..00000000
--- a/event.d/serial
+++ /dev/null
@@ -1,29 +0,0 @@
-
-start on fedora.serial-console-available *
-stop on runlevel [016]
-
-instance
-pre-start script
- while /bin/true ; do
- LANG=C /sbin/initctl status rcS | grep -wq "rcS (stop) waiting" && break
- sleep 1
- done
- while /bin/true ; do
- runlevel=$(/sbin/runlevel | /bin/awk '{ print $2 }')
- case "$runlevel" in
- 2|3|4|5)
- LANG=C /sbin/initctl status rc$runlevel | grep -wq "rc$runlevel (stop) waiting" && break
- ;;
- *)
- ;;
- esac
- sleep 1
- done
- /sbin/securetty $1
-end script
-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