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 /event.d/rcS | |
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 'event.d/rcS')
-rw-r--r-- | event.d/rcS | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/event.d/rcS b/event.d/rcS deleted file mode 100644 index b01ddc57..00000000 --- a/event.d/rcS +++ /dev/null @@ -1,31 +0,0 @@ -# rcS - runlevel compatibility -# -# This task runs the old sysv-rc startup scripts. - -start on startup - -stop on runlevel - -# Note: there can be no previous runlevel here, if we have one it's bad -# information (we enter rc1 not rcS for maintenance). Run /etc/rc.d/rc -# without information so that it defaults to previous=N runlevel=S. -console output -script - runlevel --set S >/dev/null || true - - /etc/rc.d/rc.sysinit - runlevel --reboot || true -end script -post-stop script - if [ "$UPSTART_EVENT" == "startup" ]; then - runlevel=$(/bin/awk -F ':' '$3 == "initdefault" { print $2 }' /etc/inittab) - [ -z "$runlevel" ] && runlevel="3" - for t in $(cat /proc/cmdline); do - case $t in - -s|single|S|s) runlevel="S" ;; - [1-9]) runlevel="$t" ;; - esac - done - exec telinit $runlevel - fi -end script |