18 lines
479 B
Bash
18 lines
479 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
# Optional background services, only started together with php-fpm so that
|
|
# one-off commands (php artisan ..., composer ...) are passed through untouched.
|
|
case "$1" in
|
|
php-fpm*)
|
|
if [ "${ENABLE_CRON:-0}" = "1" ]; then
|
|
crond -b -L /var/log/cron/cron.log
|
|
fi
|
|
if [ "${ENABLE_SUPERVISOR:-0}" = "1" ]; then
|
|
supervisord -c /etc/supervisor/supervisord.conf
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
exec docker-php-entrypoint "$@"
|