about summary refs log tree commit diff
path: root/README.md
blob: 6840d05618589d54c850f97c7a3dbcf3e7b6da9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
## 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.

### How to use it

    # xbps-install -Sy runit-void
    
Append `init=/usr/bin/runit-init` to the kernel cmdline, I'd suggest you to use `/etc/default/grub`:

    ...
    GRUB_CMDLINE_LINUX_DEFAULT="loglevel=4 init=/usr/bin/runit-init"
    ...
    
and then update GRUB's configuration file:

    # update-grub

reboot and runit will kick in and start services in "default" runlevel (multi-user).

To see enabled services for "current" runlevel:

    $ ls /var/service

To see available runlevels (default and single, which just runs sulogin):

    $ ls /etc/runit/runsvdir

To enable and start a service into the "current" runlevel:

    $ ln -s /etc/sv/<service> /etc/runit/runsvdir/current

To disable and remove a service:

    $ rm -f /etc/runit/runsvdir/current/<service>

Feel free to send patches and contribute with improvements and/or new services!