runit init scripts for vb-linux
  • Shell 41.4%
  • Roff 25.2%
  • C 17.8%
  • Awk 10%
  • Makefile 5.6%
Find a file
2021-12-26 02:54:33 +00:00
core-services Support pure v2 cgroup mounts 2021-03-13 19:27:18 -05:00
dracut dracut/runit-void.conf -> dracut/10-runit-void.conf 2014-12-10 09:45:23 +01:00
runsvdir Delete 'runsvdir/default/agetty-tty6' 2021-12-26 02:54:33 +00:00
services changed agetty to ngetty 2021-12-26 00:43:31 +01:00
.gitignore Add vlogger(8) 2018-06-20 18:02:46 +02:00
1 1: only create /run/runit directory. 2020-07-20 06:50:33 -04:00
2 2: Handle single the same way as any other runlevel 2015-03-26 13:18:29 +01:00
3 3: remove /run/runit/reboot handling. 2020-07-20 06:50:33 -04:00
crypt.awk Fix missing dash 2021-08-14 16:47:44 +02:00
ctrlaltdel ctrlaltdel: trigger a reboot properly. 2020-07-20 06:50:33 -04:00
functions functions: add missing new line in msg_warn 2019-01-15 10:08:57 -05:00
halt.8 halt: add support for wtmp 2019-09-06 14:40:42 +02:00
halt.c halt: switch __progname tests to use strncmp 2021-03-10 12:37:04 +01:00
Makefile Makefile: actually install vlogger 2018-06-23 02:09:57 +02:00
modules-load Use global substitution on commas in modules-load 2021-01-17 22:54:41 +01:00
modules-load.8 leahize 2017-07-24 17:18:42 +02:00
pause.1 leahize 2017-07-24 17:18:42 +02:00
pause.c Add halt/pause utils from ignite. 2014-04-26 09:29:39 +02:00
rc.conf Support pure v2 cgroup mounts 2021-03-13 19:27:18 -05:00
rc.local Add an empty rc.local. 2014-07-25 19:38:36 +02:00
rc.shutdown Added /etc/rc.shutdown, called in runlevel 3 2015-01-15 22:49:49 +01:00
README.md Update README.md 2018-11-11 10:23:43 +00:00
shutdown shutdown: Quote command substitution 2017-07-26 13:36:59 +02:00
shutdown.8 leahize 2017-07-24 17:18:42 +02:00
vlogger.8 vlogger: behave like logger(1) if argv[0] is "logger" 2021-03-13 23:55:15 +01:00
vlogger.c vlogger: behave like logger(1) if argv[0] is "logger" 2021-03-13 23:55:15 +01:00
zzz zzz: suspend is S1 2020-10-01 20:45:30 +02:00
zzz.8 zzz: suspend is S1 2020-10-01 20:45:30 +02:00

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!

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.

http://creativecommons.org/publicdomain/zero/1.0/