Wednesday, November 23, 2005
lighttpd with daemontools on Debian
I love lighty, daemontools and Debian.
There are 3 step to combine them (assuming you have lighttpd already installed).
Now, use
Thats all folks!
There are 3 step to combine them (assuming you have lighttpd already installed).
Step 1
Install daemontools.$ apt-get install daemontools-installer
$ get-daemontools
$ build-daemontools
(I am using $ get-daemontools
$ build-daemontools
/service
-style.)Step 2
Createrun
script.$ mkdir /service/lighttpd
$ cat <<EOF > /service/lighttpd/run
#!/bin/sh
exec /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -D
EOF
(lighttpd will be started automagically)$ cat <<EOF > /service/lighttpd/run
#!/bin/sh
exec /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -D
EOF
Step 3
Remove lighttpd frominit.d
$ update-rc.d -f lighttpd remove
Now, use
svstat
and svc
as usual :)Thats all folks!