~uphackers/uphack/event.d

« back to all changes in this revision

Viewing changes to rcS

  • Committer: root
  • Date: 2008-03-19 14:51:08 UTC
  • Revision ID: root@blackbook-20080319145108-9lzaud8h1m63ny57
Initial import into bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# rcS - runlevel compatibility
 
2
#
 
3
# This task runs the old sysv-rc startup scripts.
 
4
 
 
5
start on startup
 
6
stop on started x11-common
 
7
stop on runlevel
 
8
 
 
9
# Note: there can be no previous runlevel here, if we have one it's bad
 
10
# information (we enter rc1 not rcS for maintenance).
 
11
console output
 
12
script
 
13
        runlevel --set S >/dev/null || true
 
14
 
 
15
        PREVLEVEL=N
 
16
        RUNLEVEL=S
 
17
        export PREVLEVEL RUNLEVEL
 
18
 
 
19
        #exec /etc/init.d/rcS
 
20
end script