voila j'ai cr�er le script suivant :

#!/bin/sh
#
# mrtg
#
# description: mrtg system monitoring daemon
#
# chkconfig: 23456 90 20
# processname: mrtg
# pidfile: /home/www/mrtg.atoutdev.org/cfg/mrtg.pid
# Source function library.
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
  start)
   echo -n "Starting mrtg daemon: "
   exec /usr/local/mrtg-2/bin/mrtg /home/www/mrtg.atoutdev.org/cfg/mrtg.cfg
   [ $? -eq 0 ] && touch /var/lock/subsys/mrtg
  ;;
  stop)
   echo -n "Stopping mrtg daemon: "
   killproc mrtg
   sleep 2
   rm -f /home/www/mrtg.atoutdev.org/cfg/mrtg.pid
   rm -f /var/lock/subsys/mrtg
   echo
  ;;
  status)
   status mrtg
  ;;
  restart|reload)
   $0 stop
   $0 start
  ;;
  *)
  echo "Usage: mrtg start|stop|status|restart|reload}"
  exit 1
esac
exit 0

le probl�me c'est que le fichier /home/www/mrtg.atoutdev.org/cfg/mrtg.pid
n'est pas toujours supprim� et donc emp�che le red�marrage correcte de mrtg.

une id�e ?


Bien � vous
Philippe
http://www.devparadise.com/


Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft?
Rendez-vous sur "http://www.mandrakestore.com";

Répondre à