Skip to content

Commit

Permalink
Smarter pid waiting in amusewiki restart
Browse files Browse the repository at this point in the history
  • Loading branch information
melmothx committed Oct 7, 2024
1 parent adeab9b commit ee4e96c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion doc/amusewiki
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,13 @@ if [ "x$action" = "xrestart" ]; then
--nproc 3 -E deployment \
/usr/share/perl5/AmuseWikiFarm/psgi/amusewiki.psgi &

sleep 20
for i in $(seq 1 10); do
echo "$i. waiting 10 seconds for the backup app to come up"
sleep 10
if [ -f "$tmppidfile" ]; then
break
fi
done
if [ -f "$tmppidfile" ]; then
temp_pid=`cat $tmppidfile`
if [ -n "$temp_pid" ]; then
Expand Down

0 comments on commit ee4e96c

Please sign in to comment.