Fix race condition with workaround

master
andryyy 2017-06-13 07:39:26 +02:00
parent 35a73025c7
commit fcfc119805
2 changed files with 1 additions and 5 deletions

View File

@ -1,9 +1,5 @@
#!/bin/bash #!/bin/bash
until mysqladmin ping --host mysql --silent; do
sleep 1
done
# Wait for MySQL to warm-up # Wait for MySQL to warm-up
while mysqladmin ping --host mysql --silent; do while mysqladmin ping --host mysql --silent; do

View File

@ -8,7 +8,7 @@ autostart=true
stdout_syslog=true stdout_syslog=true
[program:sogo] [program:sogo]
command=/usr/sbin/sogod command=sh -c "sleep 3; /usr/sbin/sogod"
user=sogo user=sogo
autorestart=true autorestart=true
priority=20 priority=20