projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cce5da2
)
don't try to kill a process which does not exists anymore - this avoid
author
Wolfram Schneider
<wosch@indexdata.dk>
Mon, 11 May 2009 20:25:37 +0000
(20:25 +0000)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Mon, 11 May 2009 20:25:37 +0000
(20:25 +0000)
a silly error message
src/pazpar2.sh
patch
|
blob
|
history
diff --git
a/src/pazpar2.sh
b/src/pazpar2.sh
index
ab02cd6
..
84985ca
100755
(executable)
--- a/
src/pazpar2.sh
+++ b/
src/pazpar2.sh
@@
-16,7
+16,9
@@
case "$command" in
;;
stop)
- test -f $pazpar2_pid && kill `cat $pazpar2_pid`
+ test -f $pazpar2_pid && \
+ kill -0 `cat $pazpar2_pid` 2>/dev/null && \
+ kill -TERM `cat $pazpar2_pid`
;;
# graceful restart - not yet implemented by pazpar2