wait for up to 10 seconds on the php-fpm socket to come up, before starting nginx
This commit is contained in:
parent
bcb52002aa
commit
8539ee0e6e
1 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
#!/usr/bin/execlineb -P
|
#!/usr/bin/execlineb -P
|
||||||
if { test -S /var/run/php-fpm.sock }
|
forx -o 127 timer { 0 1 2 3 4 5 6 7 8 9 }
|
||||||
|
ifelse {
|
||||||
|
test -S /var/run/php-fpm.sock
|
||||||
|
} {
|
||||||
/usr/sbin/nginx
|
/usr/sbin/nginx
|
||||||
|
}
|
||||||
|
foreground { sleep 1 }
|
||||||
|
exit 127
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue