Replacing init on FreeBSD

From: Jan Bramkamp <crest_at_rlwinm.de>
Date: Mon, 08 Dec 2014 14:07:01 +0100

The runit documentation (http://smarden.org/runit/replaceinit.html)
recommends users to replace the FreeBSD /sbin/init with runit-init. This
works at first glance but breaks the FreeBSD upgrade procedure.

The correct way to use alternative init exectuables is to change the
init_path kernel environment variable. The init_path kenv variable is
interpreted as a list of colon separated paths to init executables.
To set the init_path kenv variable through the FreeBSD /boot/loader add
the following line to /boot/loader.conf:

        init_path="/sbin/runit-init:/sbin/init:/rescue/init"

Upgrading FreeBSD overwrites /sbin/init with a new version of the
FreeBSD init leaving the system unusable unless steps are taken to start
runsvdir through the FreeBSD rcNG system if init is not runit-init.
Received on Mon Dec 08 2014 - 13:07:01 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:18 UTC