projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow merge on merged content
[pazpar2-moved-to-github.git]
/
src
/
pazpar2.sh
diff --git
a/src/pazpar2.sh
b/src/pazpar2.sh
index
ab02cd6
..
8debb42
100755
(executable)
--- a/
src/pazpar2.sh
+++ b/
src/pazpar2.sh
@@
-16,7
+16,9
@@
case "$command" in
;;
stop)
;;
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
;;
# graceful restart - not yet implemented by pazpar2
@@
-26,6
+28,7
@@
case "$command" in
restart)
$0 stop
restart)
$0 stop
+ sleep 1 # let the OS give the port address free
$0 start "$@"
;;
$0 start "$@"
;;