Skip to content
Snippets Groups Projects
Commit 8f6e9bd7 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed sigquit signal for fpm container

parent 41e0ad41
No related branches found
No related tags found
1 merge request!1995Resolve "Make MetaGer Pods shutdown gracefully"
#!/bin/sh
#!/bin/bash
set -e
_trap() {
echo "Stopping FPM"
kill -s SIGQUIT $FPM_PID
}
trap _trap SIGQUIT
validate_laravel
if [ ! -f .env ];
......@@ -22,4 +29,6 @@ php artisan db:seed
php artisan ide-helper:generate
php artisan ide-helper:meta
docker-php-entrypoint php-fpm
\ No newline at end of file
docker-php-entrypoint php-fpm &
FPM_PID=$!
wait
\ No newline at end of file
#!/bin/sh
#!/bin/bash
set -e
_trap() {
echo "Stopping FPM"
kill -s SIGQUIT $FPM_PID
}
trap _trap SIGQUIT
validate_laravel
# Production version will have the .env file mounted at /home/metager/.env
......@@ -19,4 +26,6 @@ php artisan route:trans:cache
php artisan spam:load
php artisan load:affiliate-blacklist
docker-php-entrypoint php-fpm
\ No newline at end of file
docker-php-entrypoint php-fpm &
FPM_PID=$!
wait
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment