carbon-s6-init

s6-linux-init configuration for Carbon
git clone https://ccx.te2000.cz/git/carbon-s6-init
Log | Files | Refs

runlevel (554B)


      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 sysv-rc:
     12 # exec /etc/init.d/rc "$1"
     13 
     14 ### If your services are managed by OpenRC:
     15 # exec /sbin/openrc "$1"
     16 
     17 ### If your services are managed by s6-rc:
     18 # exec s6-rc -v2 -up change "$1"