From 2716187dfab6e994eefbdb1d96d5d275f4961896 Mon Sep 17 00:00:00 2001 From: bsmile Date: Fri, 3 Jul 2015 14:37:00 +0900 Subject: [PATCH] Fixed restart failure of zabbix-java-gateway --- files/default/zabbix-java-gateway/init.rhel | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/default/zabbix-java-gateway/init.rhel b/files/default/zabbix-java-gateway/init.rhel index 9b56680..f601ba2 100755 --- a/files/default/zabbix-java-gateway/init.rhel +++ b/files/default/zabbix-java-gateway/init.rhel @@ -112,12 +112,14 @@ case "$1" in ;; restart) $0 stop + sleep 1 $0 start RETVAL=$? ;; condrestart) if [ -n "$PID_FILE" -a -e "$PID_FILE" ]; then $0 stop + sleep 1 $0 start fi RETVAL=$?