liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

runlevel (409B)


      1 #!/bin/sh -e
      2 
      3 ### This script is called once at boot time by rc.init, and is
      4 ### also called by the runleveld service every time the user
      5 ### requests a machine state change via telinit.
      6 ### Ideally, it should just be a call to the service manager.
      7 
      8 test "$#" -gt 0 || { echo 'runlevel: fatal: too few arguments' 1>&2 ; exit 100 ; }
      9 
     10 
     11 ### If your services are managed by s6-rc:
     12 exec s6-rc -v2 -up change "$1"