Questions tagged [runit]

runit is a POSIX-compliant init system, which was designed as a replacement for SysVinit. It is the standard init system of Void Linux, and is also used by Artix Linux (besides OpenRC). The runit system is optimized for speed and code size.

runit works in three stages: Stage 1 (boot process), Stage 2 (while using the system) and Stage 3 (shutdown/reboot of the system).

  • Stage 1: At this stage runit starts /etc/runit/1. In this script the initialization of the system is performed. There is full access to /dev/console to start a rescue console in case of emergency.
  • Stage 2: The /etc/runit/2 script should not return a value before shutting down or rebooting the system. System services are started and controlled here. To do this, runit accesses the individual services via runsvdir.
  • Stage 3: When runit is instructed to shut down the system, or the Stage 2 script exits without error, it calls /etc/runit/3, which will terminate all Stage 2 processes still running and shut down the system.

The program runit-init is intended to replace /sbin/init. Runlevels are handled through the runsvdir and runsvchdir programs. Service dependencies are resolved automatically.

See http://smarden.org/runit/

30 questions
7
votes
2 answers

runit and nginx

I'm working on a system whose primary startup system is runit. Unfortunately, runit requires that whatever application it is running be running in the foreground like so: #!/bin/bash exec sshd -D Seeing as nginx doesn't offer a way to run it in…
Naftuli Kay
  • 38,686
  • 85
  • 220
  • 311
5
votes
1 answer

Convert sysvinit/upstart init scripts to runit

I am trying to migrate a currently VM-based infrastructure to a Docker-based one, using docker-baseimage, which uses runit/runsv to start and supervise system services. Now while it is apparently very easy to install a self-written Python program as…
tgpfeiffer
  • 151
  • 3
4
votes
1 answer

Error trying to run agetty in a runit based linux installation

I am trying to run agetty in a runit based linux system, but I have the following problem sh: cannot set terminal process group (136) Inappropriate ioctl for device sh: no job control in this shell I have no clue about this error, do you have some…
carpinchosaurio
  • 333
  • 3
  • 15
4
votes
2 answers

How to log output to log file using runit

I am running program using runit to run at startup. I want all the output by from the program that is run by runit to be logged to a file. I have looked at svlogd but I cannot figure out how to get it running.
Atrotors
  • 337
  • 1
  • 3
  • 8
3
votes
1 answer

Void Linux hangs on poweroff

I just got a Oryx Pro, model Oryp4, from System76 and installed Void Linux on it. When I try to power it off or reboot I just get these messages and this dmesg. I have tried adding acpi=off to /etc/default/grub on the line GRUB_CMDLINE_LINUX_DEFAULT…
3
votes
2 answers

Why this error about upstart/systemd with runit?

I run sudo apt-get install git-all in Ubuntu 16.04 and see the following in the end Setting up runit (2.1.2-3ubuntu1) ... start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused dpkg: error processing…
Léo Léopold Hertz 준영
  • 6,788
  • 29
  • 91
  • 193
3
votes
2 answers

Possible to pass env vars into chpst without envdir?

I use runit to daemonize my web application, and I'm trying to see if I can have my process managed by sv not have to have a corresponding envdir for its environment variables. I wonder if I can just pass those vars directly into my call to chpst.…
Alexandr Kurilin
  • 2,481
  • 2
  • 16
  • 13
2
votes
3 answers

How to connect with wifi in void linux from scratch

The instalation of void linux , without desktop manager, it's come without Network-Manager package, so i can't use nmtui and iwctl as arch linux. also void linix it's not support system.d , it's runit system what's the better why to connect to wifi…
nextloop
  • 136
  • 1
  • 3
  • 14
2
votes
0 answers

ACPI BIOS error and STONEY not supported in kfd on laptop

Please see the image before add answer. [ 2.2157971 ACPI BIOS Error (bug): Could not resolve symbol [^*PB2.UGA.AFN?] ,AE_NOT_FOUND (28208528/psargs-330) [ 2.215823) ACPI Error: AE_NOT_FOUND (28208528/psargs-330) [ 2.218328] ACPI Error:…
Aji Apa
  • 21
  • 3
2
votes
1 answer

How to properly spawn postgresql server via runit

I'm trying to get my head around Voidlinux and runit in particular. Void had postgresql v9 in its repos, I needed something newer, so I compiled v12 from source. It works ok, but now I'm struggling with creating a runit service for it, I've read…
percolant
  • 41
  • 2
2
votes
2 answers

Combine svlogd logs from different runit services

I want to run a Node.js app with multiple Node processes running the exact same code. I'm using runit to start and manage the Node processes, because it has good Chef support. To illustrate the set up, imagine I'm running 2 runit service…
Michael Kropat
  • 379
  • 5
  • 12
1
vote
0 answers

How do I edit /etc/runit/1 without logging in?

I made the mistake of autostarting syncthing with runit and now I can't login. (I added "syncthing to /etc/runit/1".) Initially, I rebooted normally to syncthing starting, but from there I could not gain control with ctrl + c. I then tried booting…
Bob Bob
  • 11
  • 1
1
vote
1 answer

How to start cinelerra on Debian?

I have installed Cinelerra on Debian 9. I had to activate an additional repository for this, namely deb-multimedia, so that I can install it with apt-get install. The installation worked and which cinelerra displays /usr/bin/cinelerra as location.…
sharkant
  • 3,560
  • 10
  • 30
  • 46
1
vote
2 answers

How to inhibit dhcpd from outputting over the console login prompt?

As dhcpd negotiates it prints its output on the login prompt, which clutters (messes up, wrangles, uglifies, writes over, obscures [synonyms for googlers]) the console login prompt. How to inhibit dhcpd from outputting over the console login…
0
votes
0 answers

LUKS + TPM2 + noSD + Dracut

So I have been struggling for several days to determine what I am doing wrong and I know it is something small. I currently have Void Linux setup on a full encrypted LUK2 volume. The system uses Dracut to produce a unified kernel image and boots…
1
2