3

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.

3 Answers 3

1

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?

1

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

0

This is not for daemontools, but could be an alternative that works/compiles in netbsd: https://immortal.run/source/ There is no current port but works straight forward

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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