wait for up to 10 seconds on the php-fpm socket to come up, before starting nginx

This commit is contained in:
El RIDO 2021-06-05 07:43:21 +02:00
parent bcb52002aa
commit 8539ee0e6e
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92

View file

@ -1,3 +1,9 @@
#!/usr/bin/execlineb -P
if { test -S /var/run/php-fpm.sock }
/usr/sbin/nginx
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
}
foreground { sleep 1 }
exit 127