From fedda7b774c76ec0086941a803f5469d6def4341 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 9 Oct 2019 10:01:15 +0200 Subject: [PATCH] small changes to log handling in cron --- overlay/etc/crontabs/nginx | 2 +- overlay/usr/local/bin/entrypoint.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/overlay/etc/crontabs/nginx b/overlay/etc/crontabs/nginx index 161c9ce..a7a1cf9 100644 --- a/overlay/etc/crontabs/nginx +++ b/overlay/etc/crontabs/nginx @@ -1,2 +1,2 @@ SHELL=/bin/sh -*/15 * * * * /usr/bin/php -f /var/www/app/app/actualize_script.php +*/15 * * * * /usr/bin/php -f /var/www/app/app/actualize_script.php >/tmp/freshrss_sync.log 2>&1 diff --git a/overlay/usr/local/bin/entrypoint.sh b/overlay/usr/local/bin/entrypoint.sh index 808a3f4..eea4768 100755 --- a/overlay/usr/local/bin/entrypoint.sh +++ b/overlay/usr/local/bin/entrypoint.sh @@ -34,6 +34,6 @@ if [ -f "/var/www/app/data/do-install.txt" ]; then rm -rf /var/www/app/data/do-install.txt fi -exec supercronic -split-logs /etc/crontabs/nginx & -exec php-fpm7 -F & +supercronic /etc/crontabs/nginx & +php-fpm7 -F & exec nginx -g "daemon off;"