--- rpms/smeserver-php/sme10/smeserver-php-3.0.0-bz11173-bz11015-logging.patch 2020/11/19 02:53:47 1.1 +++ rpms/smeserver-php/sme10/smeserver-php-3.0.0-bz11173-bz11015-logging.patch 2020/12/07 05:02:29 1.2 @@ -77,3 +77,50 @@ diff -Nur smeserver-php-3.0.0.old/root/e +:programname, startswith, "php74-fpm" /var/log/php/php74/php74-fpm.log +:programname, startswith, "php74-fpm" stop + +diff -Nur smeserver-php-3.0.0.old/root/etc/e-smith/templates/etc/logrotate.d/php-fpm/php-fpm smeserver-php-3.0.0/root/etc/e-smith/templates/etc/logrotate.d/php-fpm/php-fpm +--- smeserver-php-3.0.0.old/root/etc/e-smith/templates/etc/logrotate.d/php-fpm/php-fpm 2019-12-09 23:00:07.000000000 -0500 ++++ smeserver-php-3.0.0/root/etc/e-smith/templates/etc/logrotate.d/php-fpm/php-fpm 2020-12-07 00:00:29.405000000 -0500 +@@ -1,8 +1,14 @@ +-/var/log/php/*/*.log \{ ++{ ++ ++return "# all versions in php-fpm file" unless $PHP_VERSION =""; ++ ++$OUT = "/var/log/php/*/php*fpm.log { + missingok + notifempty + sharedscripts + delaycompress ++ su root root ++ create 600 root root + postrotate + /sbin/e-smith/service php-fpm reload >/dev/null 2>&1 || true + /sbin/e-smith/service php55-php-fpm reload >/dev/null 2>&1 || true +@@ -13,4 +19,26 @@ + /sbin/e-smith/service php73-php-fpm reload >/dev/null 2>&1 || true + /sbin/e-smith/service php74-php-fpm reload >/dev/null 2>&1 || true + endscript +-\} ++} ++ ++/var/log/php/*/[!php]*.log { ++ missingok ++ notifempty ++ sharedscripts ++ delaycompress ++ su www www ++ create 600 www www ++ postrotate ++ /sbin/e-smith/service php-fpm reload >/dev/null 2>&1 || true ++ /sbin/e-smith/service php55-php-fpm reload >/dev/null 2>&1 || true ++ /sbin/e-smith/service php56-php-fpm reload >/dev/null 2>&1 || true ++ /sbin/e-smith/service php70-php-fpm reload >/dev/null 2>&1 || true ++ /sbin/e-smith/service php71-php-fpm reload >/dev/null 2>&1 || true ++ /sbin/e-smith/service php72-php-fpm reload >/dev/null 2>&1 || true ++ /sbin/e-smith/service php73-php-fpm reload >/dev/null 2>&1 || true ++ /sbin/e-smith/service php74-php-fpm reload >/dev/null 2>&1 || true ++ endscript ++} ++"; ++ ++}