* fix endless loop if we don't find a PID file.
authorWilfried Göesgens <willi@citadel.org>
Tue, 12 Feb 2008 08:19:58 +0000 (08:19 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 12 Feb 2008 08:19:58 +0000 (08:19 +0000)
citadel/debian/citadel.init

index 6d27f03013ac4471c9ad7ad77096f92a5547d349..3bacf5ab05295ee85e505e8a8093df386f407f65 100644 (file)
@@ -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;