Replacing init on FreeBSD

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

The runit documentation (
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:


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