From: Wolfram Schneider Date: Thu, 28 May 2009 08:36:01 +0000 (+0000) Subject: wait a second between stop and start in the restart command. This avoid X-Git-Tag: v1.1.0~11 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;ds=sidebyside;h=9182020c2b30530bb419946a30e6632d138e9378;p=pazpar2-moved-to-github.git wait a second between stop and start in the restart command. This avoid the case when the OS does not give yet the port address free and bind failed: 08:27:51-28/05 pazpar2 [log] Pazpar2 1.1.0 started 08:27:51-28/05 pazpar2 [log] HTTP listener 9005 08:27:51-28/05 pazpar2 [fatal] bind [Address already in use] 08:27:51-28/05 pazpar2 [log] Received SIGTERM from child 14128 --- diff --git a/src/pazpar2.sh b/src/pazpar2.sh index 84985ca..8debb42 100755 --- a/src/pazpar2.sh +++ b/src/pazpar2.sh @@ -28,6 +28,7 @@ case "$command" in restart) $0 stop + sleep 1 # let the OS give the port address free $0 start "$@" ;;