From 521044c8a3e837da28e740eac330dec3f53f4c29 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Tue, 12 Feb 2008 08:19:58 +0000 Subject: [PATCH] * fix endless loop if we don't find a PID file. --- citadel/debian/citadel.init | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.30.2