From 6f85f86357d70570195e7a97a8b7fbb779c82230 Mon Sep 17 00:00:00 2001
From: Laurent Bercot
s6
Since 2015-06-17, if you're a Linux user, you can use the
-s6-linux-init
+s6-linux-init
package to help you do so! Please read this documentation page first,
though, it will help you understand what s6-linux-init does.
-Software
-skarnet.org
+Software
+skarnet.org
How to run s6-svscan as process 1
- The s6-linux-init + The s6-linux-init package provides a tool, s6-linux-init-maker, to automatically create a suitable stage 1 init (so, the /sbin/init binary) for Linux. @@ -221,7 +221,7 @@ init a script.
Of course, most people will use the shell as scripting language; however, I advocate the use of -execline +execline for this, and not only for the obvious reasons. Piping s6-svscan's stderr to a logging service before said service is even up requires some tricky fifo handling that execline can do @@ -334,9 +334,9 @@ FIFO reader process.
Instead, you are encouraged to use the -execline language - +execline language - or, at least, -the redirfd +the redirfd command, which is part of the execline distribution. The redirfd command does just the right amount of trickery with FIFOs for you to be @@ -379,9 +379,9 @@ live examples without becoming system-specific.
However, the -s6-linux-init +s6-linux-init package provides you with the -s6-linux-init-maker +s6-linux-init-maker command, which produces a set of working scripts, including a script that is suitable as /sbin/init, for you to study and edit. You can run the s6-linux-init-maker command even -- cgit v1.2.3