make s6-init-files into a module

This commit is contained in:
Daniel Barlow
2022-09-27 10:19:44 +01:00
parent 85f7f7293d
commit 797aa30c47
10 changed files with 161 additions and 172 deletions

12
modules/s6/scripts/runlevel Executable file
View File

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