message personnalis

darcs-hash:20020105131617-a279a-444a5307f9c93fef09ad0cb85fd9470e8eb68ef8.gz
This commit is contained in:
stransky 2002-01-05 14:16:17 +01:00
parent ba8f7a4dc3
commit d2146bd7ec

View file

@ -59,7 +59,37 @@ fi
echo "arrêt d'innd..."
#ctlinnd throttle 'COUPURE TEMPORAIRE - fix-active'
#ctlinnd shutdown 'fix-active'
/id/inn2 stop
#
#/id/inn2 stop
#### Pour avoir des logs plus clairs, on remplace stop par un message personnalisé.
#
su news -c '/usr/lib/news/bin/ctlinnd shutdown 'réparation active''
# Stop innwatch (if running)
if [ -f /var/run/news/innwatch.pid ]; then
su news -c 'kill `cat /var/run/news/innwatch.pid`'
rm -f /var/run/news/innwatch.pid
fi
# wait for innd to exit (up to 60 sec)
printf "Stopping innd: "
/bin/su news -c 'i=12
while [ $i -gt 0 ];
do
pid=`cat /var/run/news/innd.pid 2>/dev/null`
[ "$pid" = "" ] && break
kill -0 $pid 2>/dev/null || break
sleep 5
printf "."
i=`expr $i - 1`
done'
printf "\n"
#### fin du stop personnalisé.
sleep 2
sync