Bon c'était encore une erreur de copié collé, désolé. J'avais bien mis x86_64-debian-linux-gnu.
Sinon voici le script /etc/init.d/lighttpd :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
|
#!/bin/sh
#
# lighttpd Startup script for the lighttpd server
#
# chkconfig: - 85 15
# description: Lightning fast webserver with light system requirements
#
# processname: lighttpd
# config: /etc/lighttpd/lighttpd.conf
# config: /etc/sysconfig/lighttpd
# pidfile: /var/run/lighttpd.pid
#
# Note: pidfile is assumed to be created
# by lighttpd (config: server.pid-file).
# If not, uncomment 'pidof' line.
# Source function library
. /etc/rc.d/init.d/functions
if [ -f /etc/sysconfig/lighttpd ]; then
. /etc/sysconfig/lighttpd
fi
if [ -z "$LIGHTTPD_CONF_PATH" ]; then
LIGHTTPD_CONF_PATH="/etc/lighttpd/lighttpd.conf"
fi
prog="lighttpd"
lighttpd="/usr/sbin/lighttpd"
RETVAL=0
start() {
echo -n $"Starting $prog: "
daemon $lighttpd -f $LIGHTTPD_CONF_PATH
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
return $RETVAL
}
stop() {
echo -n $"Stopping $prog: "
killproc $lighttpd
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
return $RETVAL
}
reload() {
echo -n $"Reloading $prog: "
killproc $lighttpd -HUP
RETVAL=$?
echo
return $RETVAL
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
condrestart)
if [ -f /var/lock/subsys/$prog ]; then
stop
start
fi
;;
reload)
reload
;;
status)
status $lighttpd
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart|condrestart|reload|status}"
RETVAL=1
esac
exit $RETVAL |
Je pense que c'est ce script qui ne fonctionne pas, car quand je fais un ./configure sans option, le script ne marche pas plus, alors que je peux lancer lighttpd à la main (lighttpd -f nomfichierdeconf.conf)
Edit :
Voici la ligne qui met le bazard : . /etc/rc.d/init.d/functions
Sa doit être pour redhat je pense... Sur debian, vers où faut-il faire pointer le chemin?
Edit 2 :
Bon j'ai modifié /etc/rc.d/init.d/functions par /etc/init.d/, et :
1 2
| if [ -z "$LIGHTTPD_CONF_PATH" ]; then
LIGHTTPD_CONF_PATH="/etc/lighttpd/lighttpd.conf" |
par
1 2
| if [ -z "$LIGHTTPD_CONF_PATH" ]; then
LIGHTTPD_CONF_PATH="cheminversmonfichierdeconf" |
et fais :
echo "LIGHTTPD_CONF_PATH=cheminversmonfichierdeconf" > /etc/sysconfig/ligttpd
sauf que j'ai un message d'erreur en lançant ou arrêtant lighttpd :
en lançant :
1 2
| /etc/init.d/lighttpd: line 18: .: /etc/init.d/: is a directory
Starting lighttpd: /etc/init.d/lighttpd: line 34: daemon: command not found |
en arrêtant :
1 2
| /etc/init.d/lighttpd: line 18: .: /etc/init.d/: is a directory
Stopping lighttpd: /etc/init.d/lighttpd: line 43: killproc: command not found |
Là je bloque...
Partager