Patch for daemontools on Ubuntu
Ubuntu introduced upstart as a replacement for the traditional init process management found in all System V based Unixes. However, the daemontools package has not yet been updated to accommodate this, so I have created a patch that will use upstart to manage the daemontools svscan process.
Comments
Comment from Alain EMPAIN
Time: August 17, 2008, 3:53 am
Hello Cory,
I found your article (LJ) so interessing that I planned to move our institution DNS to djbdns.
I use Ubuntu (8.04), and I tried to apply you patch :
patch -p1 < patch-for-ubuntu
——————————————–
patching file package/boot.eventd
patching file package/run
patch: **** malformed patch at line 39: +elif test -r /etc/inittab
Maybe it is a problem for me, but I think it is better to solve it at the source.
Have a nice day,
Alain
Comment from Alain EMPAIN
Time: August 19, 2008, 10:20 am
Hello Cory,
indeed I enjoyed your paper and now everything is in order (on a test server, not yet replacing the actual one because a valid DNS is soooo important for our work
)
Our DNS is authoritary for the main domain br.fgov.be (two C classes),
but also for some other small domains like vbta.ba, botanicgarden.be jardinbotanique.be botanischetuinen.be (we use four languages in Belgium : FR, NL, EN, DE).
So it is not complex, but not trivial either.
And without consulting any documentation but your paper, I was able to set tinydns up within a half hour (after compilation and install) : mainly the time reqired to type the stuff and to check it.
This is clearly a nice achievement for tinydns and your work ! Thank you very much.
You were right, my copy of your patch was not correct; I began from scratch again, and everything went fine, except a small right problem for daemontools at package/run.eventd
Here is my summary, from a basic Ubuntu 8.04 net install ‘cli’ (+- 650 MB)
————————
apt-get install gcc make patch libc6-dev
wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
unpack and go to the base directory of daemontools
cd [daemontools-dir]
echo gcc -O2 -include /usr/include/errno.h > compile/conf-cc
patch -p1 < /tmp/daemontools-eventd.patch
# —— added by me :
chmod 744 package/run.eventd
package/install
————————————————————————————
Write a comment