From: Wilfried Göesgens Date: Tue, 12 Feb 2008 08:19:58 +0000 (+0000) Subject: * fix endless loop if we don't find a PID file. X-Git-Tag: v7.86~2487 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=521044c8a3e837da28e740eac330dec3f53f4c29 * fix endless loop if we don't find a PID file. --- diff --git a/citadel/debian/citadel.init b/citadel/debian/citadel.init index 6d27f0301..3bacf5ab0 100644 --- a/citadel/debian/citadel.init +++ b/citadel/debian/citadel.init @@ -73,6 +73,10 @@ do_stop() # 2 if daemon could not be stopped # other if a failure occurred if $SENDCOMMAND "DOWN" >/dev/null 2>&1 ; then + if test ! -f "$PIDFILE"; then + echo Unable to find Citserver. Not running? + return 1 + fi PID=`cat $PIDFILE` rm -f $PIDFILE count=0;