Daemontools with upstart

Ubuntu Edgy includes upstart, a replacement for the regular SysV init. This also obsoletes /etc/inittab, which is replaced by the new /etc/event.d directory. Unfortunately the daemontools-installer package in universe doesn’t quite understand upstart just yet. Starting daemontools via upstart is quite easy. Just add the following to /etc/event.d/svscan:


# svscan - daemontools
#
# This service starts daemontools from the point the system is
# started until it is shut down again.

start on runlevel-2
start on runlevel-3
start on runlevel-4
start on runlevel-5

stop on shutdown

respawn /usr/bin/svscanboot

Then start daemontools with ’start svscan’

One Response to “Daemontools with upstart”

  1. martian says:

    Not quite… (anymore, maybe)

    change

    respawn /usr/sbin/svscanboot

    to

    respawn
    exec /usr/sbin/svscanboot

Leave a Reply

Powered by WP Hashcash