From 9182020c2b30530bb419946a30e6632d138e9378 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Thu, 28 May 2009 08:36:01 +0000 Subject: [PATCH] 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 --- src/pazpar2.sh | 1 + 1 file changed, 1 insertion(+) 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 "$@" ;; -- 1.7.10.4