diff options
author | Casey Dahlin <cdahlin@redhat.com> | 2008-07-23 09:48:23 -0400 |
---|---|---|
committer | Casey Dahlin <cdahlin@redhat.com> | 2008-07-23 09:48:23 -0400 |
commit | 01fecfecdb440d81435690c63d28909c5edd34de (patch) | |
tree | 0700ba7f0da1a17e974ad77826f8011b7e77443f /jobs.d/serial | |
parent | 51f5d4923f3ab0025708df3d20efd45fe5437e92 (diff) | |
download | initscripts-master.tar.gz initscripts-master.tar.xz initscripts-master.zip |
New job definitions, in a new location, in a new format
Diffstat (limited to 'jobs.d/serial')
-rw-r--r-- | jobs.d/serial | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/jobs.d/serial b/jobs.d/serial new file mode 100644 index 00000000..be1bfd66 --- /dev/null +++ b/jobs.d/serial @@ -0,0 +1,24 @@ +start on fedora.serial-console-available * +stop on runlevel [016] +respawn + +instance $DEVNAME +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/$DEVNAME $BAUD vt100-nav |