aboutsummaryrefslogtreecommitdiff
path: root/srcs/wordpress
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-11-08 07:31:58 +0100
committerCharles Cabergs <me@cacharle.xyz>2020-11-08 07:31:58 +0100
commitc17f96129b7afadbe9424e3712c8c50ee2f3a797 (patch)
tree83ddab47438b06ead740aed4a913eed31d70cc20 /srcs/wordpress
parent69460305ca9a4408397d61e3bd9bfb55a1fb6827 (diff)
downloadft_services-c17f96129b7afadbe9424e3712c8c50ee2f3a797.tar.gz
ft_services-c17f96129b7afadbe9424e3712c8c50ee2f3a797.tar.bz2
ft_services-c17f96129b7afadbe9424e3712c8c50ee2f3a797.zip
Fixing wordpress, phpmyadmin and nginx not restarting, Fixing dashboard not launching
Diffstat (limited to 'srcs/wordpress')
-rwxr-xr-xsrcs/wordpress/entrypoint.sh5
-rw-r--r--srcs/wordpress/wordpress.yaml8
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
---