[gull] Script pour restarter mysql

Jean-Eric Cuendet (ML) jec at ml1.jesc.ch
Tue Oct 10 13:38:58 CEST 2006


> while :
> do
>   PID="/var/run/mysqld/mysqld.pid"
>   if [ ! -a $PID ]
>    then
>     /etc/init.d/mysql stop
>     sleep 50
>     killall mysqld
>     sleep 50
>     /etc/init.d/mysql start
>     sleep 300
>   fi
>   sleep 600
> done

Ca veut dire que ton serveur est down pendant au moins 100 secondes s'il 
ne répond pas??? Pas trop top comme solution.
-jec

-- 
JeSC - Software et Consulting
Jean-Eric Cuendet
Ingénieur HES en télécommunications
1168 Villars-sous-Yens

Web       : http://jesc.ch
Blog      : http://jesc.wordpress.com
Tel       : +41 21 800 3343
Mobile    : +41 76 222 3343
--------------------------------------------------------



More information about the gull mailing list