J'ai installé lighttpd depuis l'arrivée de ma nouvelle machine monroe. Pour avoir lighttp automatiquement lancé au démarrage de la machine, il suffira de faire

root@monroe:/etc/init.d# ln -s /opt/scripts/lighttpd-manager.sh /etc/init.d/lighttpd-manager
root@monroe:/etc/init.d# chmod 744 /etc/init.d/lighttpd-manager
root@monroe:/etc/init.d#update-rc.d lighttpd-manager defaults
 Adding system startup for /etc/init.d/lighttpd-manager ...
   /etc/rc0.d/K20lighttpd-manager -> ../init.d/lighttpd-manager
   /etc/rc1.d/K20lighttpd-manager -> ../init.d/lighttpd-manager
   /etc/rc6.d/K20lighttpd-manager -> ../init.d/lighttpd-manager
   /etc/rc2.d/S20lighttpd-manager -> ../init.d/lighttpd-manager
   /etc/rc3.d/S20lighttpd-manager -> ../init.d/lighttpd-manager
   /etc/rc4.d/S20lighttpd-manager -> ../init.d/lighttpd-manager
   /etc/rc5.d/S20lighttpd-manager -> ../init.d/lighttpd-manager

Le contenu du script sera

#!/bin/bash

# Lighttpd Variables
####################
export LIGHTTPD_ROOT_PATH="/opt/lighttpd";
export LIGHTTPD_CONFILE="${LIGHTTPD_ROOT_PATH}/conf/lighttpd.conf";

# Oracle Variables 
##################
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/8.1.7
export ORA_NLS33=/u01/app/oracle/product/8.1.7/ocommon/nls/admin/data

test -f ${LIGHTTPD_CONFILE} || { echo "can not find '${LIGHTTPD_CONFILE}'";exit 1;} 

PATH=${LIGHTTPD_ROOT_PATH}/sbin:${LIGHTTPD_ROOT_PATH}/bin:${PATH};

function IsRunning() {
	pidof lighttpd > /dev/null;
	return $?;
}

function Msg() {
	echo -ne "\t$1";
}

function LaunchSpawnFcgi(){
	spawn-fcgi  -s /tmp/php-fastcgi.sock -f /usr/lib/cgi-bin/php -u lighttpd -g lighttpd -C 20 -P /var/run/spawn-fcgi.pid;
}	

case $1 in
	"status")
		IsRunning || runResult="not";
		Msg "lighttpd is ${runResult} running\n"; 
		exit 0;
	;;
	"start")
		IsRunning && { Msg "lighttpd is already running...\n"; exit 1;}
		Msg "starting spawn-fcgi...";
		LaunchSpawnFcgi;	
		Msg "starting lighttpd...";
		lighttpd -f ${LIGHTTPD_CONFILE};
		sleep 0.5;
		IsRunning && { echo "[OK]";}
		IsRunning || { echo "[KO]";}
	;;
	"stop")
		IsRunning || { Msg "nothing to stop...[KO]";exit 1;}
		IsRunning && { Msg "stopping lighttpd...";
				killall -9 lighttpd;
				sleep 0.5s;
				Msg "stopping spawn-fcgi...";
				killall -9 php;echo "[OK]"; 
				exit 0;}
		exit 0;
	;;
	"restart")
		Msg "Trying to restart lighttpd...\n";
		IsRunning && { Msg  "stopping lighttpd..."; 
				killall -9 lighttpd;
				sleep 1.5s;
				Msg "stopping spawn-fcgi...";
				killall -9 php;
				echo "[OK]";
				sleep 0.5;}
		IsRunning || { Msg "starting spawn-fcgi...";
				LaunchSpawnFcgi;
				Msg "starting lighttpd...";
				lighttpd -f ${LIGHTTPD_CONFILE};
			      }
		IsRunning && { echo "[OK]";}
		IsRunning || { echo "[KO]";}
	;;
	*)
		echo " (start|stop|restart|status)";
		exit 0;
	;;
esac