Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for some good resources on running daemontools on a NetBSD box. I've installed the binary package via pkg_add, but I can't seem to find an rc script for starting, e.g., svscan. I'm mostly a Linux and FreeBSD user, and this is the sort of thing I would expect to find after an install. Did I just look in the wrong place? Should I be building from source to find those sorts of extras? Is there a good guide somewhere that covers things like this? Thanks.

share|improve this question

I once did this on OpenBSD and followed http://openbsd.totorux.info/openbsd-wiki.org/index.php/Installing_Daemontools

Maybe it can help under NetBSD, too?

share|improve this answer

Vanilla Bernstein daemontools installs by way of the package/run program, invoked by the package/install program. This determines whether the operating system uses System 5 rc or the old BSD rc, and updates either /etc/inittab or /etc/rc.local accordingly.

van Smoorenburg rc (from Linux operating systems) is a portability nightmare, and Mewburn rc (as used nowadays on FreeBSD and NetBSD) had barely (just under 6 months) been brought out for NetBSD and didn't exist at all on other BSDs when daemontools 0.76 came out in July 2001.

Whereas, on the other hand, /etc/inittab is a thing of the past, and on operating systems such as Ubuntu Linux /etc/rc.local has actually been superseded thrice over — by van Smoorenburg rc, then by upstart, and then by systemd. (It's a mere twice over superseded on CentOS.)

That leaves pretty much nothing in vanilla Bernstein daemontools.

Various people have addressed this deficit over the years.

Shigemura's Mewburn rc script from the start incorporated the knowledge that svscanboot is a thing of the past, too. It could handle invoking a log dæmon for the output of svscan (and its supervise children) itself. By 2007, it had no need for readproctitle at all.

The nosh toolset can handle daemontools services, and has a svscan-compatible mode of operation as well as a package that provides Mewburn rc files for running the nosh service manager and service scanner under Mewburn rc. For more information, look in the nosh Guide in the chapter entitled "Compatible old-style startup", accessible with

xdg-open /usr/local/share/doc/nosh/svscan-startup.html

Further reading

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.