# chroot INSTALACION https://wiki.artixlinux.org/Main/Installation sudo pacman -S base-devel git git clone https://aur.archlinux.org/yay.git cd yay makepkg -si rc-update add ssh rc-service sshd start rc-service ssh stop rc-update del ssh rc-service ssh status ##################################################### ##################################################### ##################################################### # chroot INSTALACION https://github.com/antiX-Linux sv status /var/service/servicename becomes sv status servicename. Listing running services: # sv status /var/service/* run: /var/service/agetty-2: (pid 4120) 7998s run: /var/service/agetty-3: (pid 4119) 7998s run: /var/service/bougyman: (pid 4465) 7972s run: /var/service/bougyx: (pid 4135) 7998s; run: log: (pid 4127) 7998s run: /var/service/cron: (pid 4137) 7998s; run: log: (pid 4122) 7998s run: /var/service/dialer: (pid 4121) 7998s run: /var/service/qmail: (pid 4138) 7998s; run: log: (pid 4126) 7998s run: /var/service/smtpd: (pid 4136) 7998s; run: log: (pid 4125) 7998s run: /var/service/socklog-klog: (pid 4139) 7998s; run: log: (pid 4132) 7998s run: /var/service/socklog-unix: (pid 4133) 7998s; run: log: (pid 4124) 7998s run: /var/service/ssh: (pid 4134) 7998s; run: log: (pid 4123) 7998s Create and start a service: # ln -s /etc/sv/ssh /var/service/ssh Stops a service immediately (would still start on next boot): # sv down /var/service/ssh Starts a service which has been previously stopped, or which is configured to not start automatically: # sv up /var/service/ssh Restarts a service: # sv restart /var/service/ssh Reloads a service: # sv reload /var/service/ssh Shows status of a service and its log service: # sv status /var/service/ssh Stops a service, and disables it (will not start next boot): # rm /var/service/ssh User Services There are two ways of creating a user supervision tree: using a Systemd/User service or with runit itself. See #Using BusyBox's implementation for an example systemd user service. To use runit itself refer to the section in the Voidlinux Handbook. Example Service Note This example assumes your services are stored in ~/.config/sv and your runsvdir is ~/service. You should change them to your configuration. Create a directory where you will keep your services. $ mkdir -p ~/.config/sv Create a directory for your service. $ mkdir ~/.config/sv/mpd Create a run file in the service directory. You can find example run files in runit's site $HOME/.config/sv/mpd/run #!/bin/sh MPDCONF=${XDG_CONFIG_HOME:-$HOME/.config}/mpd/mpd.conf exec mpd --no-daemon $MPDCONF Make it executable. To enable the service make a symlink to your service directory. This will make the service start automatically when the runit starts. The service should start immediately. $ ln -s ~/.config/sv/mpd ~/service/mpd To stop the service: $ SVDIR=~/service sv down mpd # or $ sv down ~/service/mpd To start the service again: $ SVDIR=~/service sv up mpd # or $ sv up ~/service/mpd