Fix race condition with workaround
parent
35a73025c7
commit
fcfc119805
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue