Bonjour à tous,
j'ai un petit problème avec mon serveur DHCP qui se presente comme ceci:
fred@raijin [~] $ sudo /etc/init.d/dhcp3-server stop
* Stopping DHCP server... [ ok ]
fred@raijin [~] $ sudo /etc/init.d/dhcp3-server start
* Starting DHCP server... [ ok ]
fred@raijin [~] $ sudo /etc/init.d/dhcp3-server stop
* Stopping DHCP server... [ ok ]
fred@raijin [~] $ sudo /etc/init.d/dhcp3-server start
* Starting DHCP server... [ ok ]
fred@raijin [~] $ sudo /etc/init.d/dhcp3-server stop
* Stopping DHCP server... [fail]
fred@raijin [~] $ sudo /etc/init.d/dhcp3-server start
* Starting DHCP server... [ ok ]
fred@raijin [~] $ sudo /etc/init.d/dhcp3-server stop
* Stopping DHCP server... [ ok ]
Environ 1 fois sur 2, la commande stop renvoie fail, étrange non?
Donc, j'ai regardé ce qu'il se passait et voila :
fred@raijin [~] $ sudo /etc/init.d/dhcp3-server start
* Starting DHCP server... [ ok ]
fred@raijin [~] $ ls /var/run/dhcp3-server/
dhcpd.pid
fred@raijin [~] $ sudo /etc/init.d/dhcp3-server stop
* Stopping DHCP server... [ ok ]
fred@raijin [~] $ ls /var/run/dhcp3-server/
fred@raijin [~] $ sudo /etc/init.d/dhcp3-server start
* Starting DHCP server... [ ok ]
fred@raijin [~] $ ls /var/run/dhcp3-server/
dhcpd.pid
fred@raijin [~] $ sudo /etc/init.d/dhcp3-server stop
* Stopping DHCP server... [fail]
fred@raijin [~] $ ls /var/run/dhcp3-server/
dhcpd.pid
Le dhcpd.pid ne veut pas se supprimer??
Voici la partie du script incriminée:
stop)
log_begin_msg "Stopping DHCP server..."
start-stop-daemon --stop --quiet --pidfile $DHCPDPID
# remove PID file if it is still present
if [ -e $DHCPDPID ] && ! ps h $(< $DHCPDPID) > /dev/null; then
rm -f $DHCPDPID
log_end_msg 0
else
log_end_msg 1
fi
;;
j'avoue que je ne comprend pas pourquoi il n'y arrive pas de temps en temps
---
Cytoplasm
http://fdemesmay.dyndns.org