projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* fix endless loop if we don't find a PID file.
[citadel.git]
/
citadel
/
debian
/
citadel.init
diff --git
a/citadel/debian/citadel.init
b/citadel/debian/citadel.init
index 6d27f03013ac4471c9ad7ad77096f92a5547d349..3bacf5ab05295ee85e505e8a8093df386f407f65 100644
(file)
--- 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;