diff --git a/etc/init.d/storm-frontend-server.in b/etc/init.d/storm-frontend-server.in index 4c15266..0e3ac3d 100644 --- a/etc/init.d/storm-frontend-server.in +++ b/etc/init.d/storm-frontend-server.in @@ -65,7 +65,7 @@ check_if_running() { if [ $? -ne $SUCCESS ]; then return $FALSE # not running fi - IS_UP=`netstat -lp | grep $PID` + IS_UP=`netstat -tlnp | grep $PID` if [ -z "$IS_UP" ]; then return $FALSE # not running fi @@ -156,7 +156,7 @@ case "$1" in check_if_running while [ $? -eq $TRUE ]; do echo -n "." - sleep 1 + sleep .1 check_if_running done rm -f $PIDFILE diff --git a/src/frontend/storm-frontend.cpp b/src/frontend/storm-frontend.cpp index c882224..ac7b438 100644 --- a/src/frontend/storm-frontend.cpp +++ b/src/frontend/storm-frontend.cpp @@ -332,7 +332,7 @@ soap* initSoap() { soap_data->accept_timeout = 5; // supporting HTTP GET in order to reply the wsdl soap_data->fget = http_get; - // soap_data->bind_flags |= SO_REUSEADDR; + soap_data->bind_flags = SO_REUSEADDR; int flags = CGSI_OPT_DELEG_FLAG; // Renamed disable with enable and changed checks accordingly