diff options
Diffstat (limited to 'srcs/wordpress')
| -rwxr-xr-x | srcs/wordpress/entrypoint.sh | 5 | ||||
| -rw-r--r-- | srcs/wordpress/wordpress.yaml | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/srcs/wordpress/entrypoint.sh b/srcs/wordpress/entrypoint.sh index c89e0d4..0e3b159 100755 --- a/srcs/wordpress/entrypoint.sh +++ b/srcs/wordpress/entrypoint.sh @@ -8,9 +8,6 @@ openrc touch /run/openrc/softlevel rc-update add php-fpm7 default -rc-update add nginx default -rc-service nginx restart rc-service php-fpm7 restart -sleep infinity & -wait +nginx -g 'daemon off;' diff --git a/srcs/wordpress/wordpress.yaml b/srcs/wordpress/wordpress.yaml index 5cd9323..17e260c 100644 --- a/srcs/wordpress/wordpress.yaml +++ b/srcs/wordpress/wordpress.yaml @@ -21,6 +21,14 @@ spec: - image: wordpress-service imagePullPolicy: Never name: cacharle-wordpress-container + livenessProbe: + exec: + command: + - /bin/sh + - -c + - ps aux | grep -v grep | grep php-fpm + initialDelaySeconds: 5 + periodSeconds: 5 --- |
