BSD Ports

sysutils/runit 2.1.2_5 FreeBSD

Service supervision tools compatible with DJB daemontools

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD3CLAUSE
Categories
sysutils
Package size
339.3 KiB, 1508.7 KiB installed

Description

runit is daemontools replacement:

  • service supervision
  • clean process state
  • reliable logging facility
  • fast system bootup and shutdown
  • packaging friendly
  • small code size

It can optionally replace init(8) as process 1.

In the other systems

SystemPortVersion
FreeBSDsysutils/runit2.1.2_5
OpenBSDsysutils/runit2.3.1p0
NetBSDsysutils/runit2.1.2
DragonFlysysutils/runit2.1.2_5
HardenedBSDsysutils/runit2.1.2_5
GhostBSDsysutils/runit2.1.2_5

Install

Binary package:

pkg install runit

From the ports tree:

cd /usr/ports/sysutils/runit/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	runit>0:sysutils/runit

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.1.2_52.1.2_52.1.2_32.1.2_52.1.2_5
FreeBSD:14:quarterly2.1.2_52.1.2_5n/a2.1.2_52.1.2_5
FreeBSD:15:latest2.1.2_52.1.2_5n/a2.1.2_52.1.2_5
FreeBSD:15:quarterly2.1.2_52.1.2_5n/an/an/a
FreeBSD:16:latest2.1.2_52.1.2_5n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Required by 1

Configuration

Options name: sysutils_runit

OptionDefaultDescription
DOCSoffBuild and/or install documentation
USES
cpe
Service scripts
runsvdir

Message after installing

Using runit with FreeBSD init:

# mkdir /var/service
# cp -R /usr/local/etc/runit /etc/runit
# echo runsvdir_enable=yes >> /etc/rc.conf

runit is very easily used instead of init on FreeBSD, but the port maintainer
suggests the following alternative method (as opposed to the website method):

1. Copy all of the etc files from /usr/local/etc/runit to /etc/runit;

# cp -R /usr/local/etc/runit /etc/runit

2. Copy runit-init AND runit into /sbin;

# cp /usr/local/sbin/runit* /sbin

3. Create service directories, enable ttyv4 and disable it in ttys:

# mkdir /var/service
# cp -R /etc/runit/getty-ttyv4 /var/service
# sed 's/^ttyv4/#&/' /etc/ttys

(The getty-ttyvx directory will getty on whichever vtty x is on, for example
 # cp -R /var/service/getty-ttyv4 /var/service/getty-ttyv3
 will result in a tty on ttyv3 as well)

4. Don't replace FreeBSD init in place, tell loader to use runit instead:

# echo 'init_path="/sbin/runit-init:/sbin/init:/sbin/oinit:/sbin/init.bak:/rescue/init"' >> /boot/loader.conf

5. Reboot!

Note: On FreeBSD, runit-init works in /usr/local/sbin, but
      *only* if /usr/local/sbin is on the same filesystem as /; check with:

# df /usr/local/sbin/runit | sed -ne 's,.* /,/,p' # If this does not return "/"

      If the output is "/", you may skip step 2 and modify step 4:

# echo 'init_path="/usr/local/sbin/runit-init:/sbin/init:/sbin/oninit:/sbin/init.bak:/rescue/init"' >> /boot/loader.conf

      making upgrades easier.

Files

Manual pages 9
  • chpst(8)
  • runit(8)
  • runit-init(8)
  • runsv(8)
  • runsvchdir(8)
  • runsvdir(8)
  • sv(8)
  • svlogd(8)
  • utmpset(8)
pkg-plist 25
  • @sample etc/runit/1.sample
  • @sample etc/runit/2.sample
  • @sample etc/runit/3.sample
  • @sample etc/runit/ctrlaltdel.sample
  • @sample etc/runit/getty-ttyv4/run.sample
  • @sample etc/runit/getty-ttyv4/finish.sample
  • @sample etc/runit/getty-ttyv4/whichtty.sample
  • sbin/chpst
  • sbin/runit
  • sbin/runit-init
  • sbin/runsv
  • sbin/runsvchdir
  • sbin/runsvdir
  • sbin/sv
  • sbin/svlogd
  • sbin/utmpset
  • share/man/man8/chpst.8.gz
  • share/man/man8/runit-init.8.gz
  • share/man/man8/runit.8.gz
  • share/man/man8/runsv.8.gz
  • share/man/man8/runsvchdir.8.gz
  • share/man/man8/runsvdir.8.gz
  • share/man/man8/sv.8.gz
  • share/man/man8/svlogd.8.gz
  • share/man/man8/utmpset.8.gz
distinfo 1
FileSizeSHA256
runit-2.1.2.tar.gz1109166fd0160cb0cf1207de4e66754b6d39750cff14bb0aa66ab49490992c0c47ba18
Master sites 2
  • http://smarden.org/runit/
  • http://www.bayofrum.net/dist/runit/

Commit history 0

No commits in the history this site was built from.