Commit feefe360 authored by mh's avatar mh
Browse files

make asl_updates more failsafe

we had the problem that after an update the restart
succeeded, however the start didn't yet succeed hence
status failed. We wait now for 2s to let apache start.
This should avoid that problem.
parent 328ad898
......@@ -62,7 +62,8 @@ if [ "$UPDATED" -gt "0" ]; then
configtest=$?
if [ "$configtest" -eq "0" ]; then
$APACHEINITD restart
# did it work?
# did it work? wait 2s to let the apache start
sleep 2
$APACHEINITD status
configtest=$?
if [ "$configtest" -eq "0" ]; then
......
......@@ -62,7 +62,8 @@ if [ "$UPDATED" -gt "0" ]; then
configtest=$?
if [ "$configtest" -eq "0" ]; then
$APACHEINITD restart
# did it work?
# did it work? wait 2s to let the apache start
sleep 2
$APACHEINITD status
configtest=$?
if [ "$configtest" -eq "0" ]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment