- Shell 41.4%
- Roff 25.2%
- C 17.8%
- Awk 10%
- Makefile 5.6%
| core-services | ||
| dracut | ||
| runsvdir | ||
| services | ||
| .gitignore | ||
| 1 | ||
| 2 | ||
| 3 | ||
| crypt.awk | ||
| ctrlaltdel | ||
| functions | ||
| halt.8 | ||
| halt.c | ||
| Makefile | ||
| modules-load | ||
| modules-load.8 | ||
| pause.1 | ||
| pause.c | ||
| rc.conf | ||
| rc.local | ||
| rc.shutdown | ||
| README.md | ||
| shutdown | ||
| shutdown.8 | ||
| vlogger.8 | ||
| vlogger.c | ||
| zzz | ||
| zzz.8 | ||
Runit init scripts for void
This repository contains the runit init scripts for the Void Linux distribution.
This is loosely based on https://github.com/chneukirchen/ignite but with the difference that I'm trying to avoid the bash dependency.
Dependencies
- A POSIX shell
- A POSIX awk
- procps-ng (needs pkill -s0,1)
- runit
How to use it
runit is used by default in the Void distribution.
To see enabled services for "current" runlevel:
$ ls -l /var/service/
To see available runlevels (default and single, which just runs sulogin):
$ ls -l /etc/runit/runsvdir
To enable and start a service into the "current" runlevel:
# ln -s /etc/sv/<service> /var/service
To disable and remove a service:
# rm -f /var/service/<service>
To view status of all services for "current" runlevel:
# sv status /var/service/*
Feel free to send patches and contribute with improvements!
Copyright
void-runit is in the public domain.
To the extent possible under law, the creator of this work has waived all copyright and related or neighboring rights to this work.