projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99c08fb
)
* fix endless loop if we don't find a PID file.
author
Wilfried Göesgens
<willi@citadel.org>
Tue, 12 Feb 2008 08:19:58 +0000
(08:19 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Tue, 12 Feb 2008 08:19:58 +0000
(08:19 +0000)
citadel/debian/citadel.init
patch
|
blob
|
history
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;