/[smeserver]/rpms/smeserver-php/sme10/smeserver-php-3.0.0-bz11173-bz11015-logging.patch
ViewVC logotype

Diff of /rpms/smeserver-php/sme10/smeserver-php-3.0.0-bz11173-bz11015-logging.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by jpp, Thu Nov 19 02:53:47 2020 UTC Revision 1.2 by jpp, Mon Dec 7 05:02:29 2020 UTC
# Line 77  diff -Nur smeserver-php-3.0.0.old/root/e Line 77  diff -Nur smeserver-php-3.0.0.old/root/e
77  +:programname, startswith, "php74-fpm"   /var/log/php/php74/php74-fpm.log  +:programname, startswith, "php74-fpm"   /var/log/php/php74/php74-fpm.log
78  +:programname, startswith, "php74-fpm"   stop  +:programname, startswith, "php74-fpm"   stop
79  +  +
80    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
81    --- 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
82    +++ 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
83    @@ -1,8 +1,14 @@
84    -/var/log/php/*/*.log \{
85    +{
86    +
87    +return "# all versions in php-fpm file" unless $PHP_VERSION ="";
88    +
89    +$OUT = "/var/log/php/*/php*fpm.log {
90         missingok
91         notifempty
92         sharedscripts
93         delaycompress
94    +    su root root
95    +    create 600 root root
96         postrotate
97           /sbin/e-smith/service php-fpm reload >/dev/null 2>&1 || true
98           /sbin/e-smith/service php55-php-fpm reload >/dev/null 2>&1 || true
99    @@ -13,4 +19,26 @@
100           /sbin/e-smith/service php73-php-fpm reload >/dev/null 2>&1 || true
101           /sbin/e-smith/service php74-php-fpm reload >/dev/null 2>&1 || true
102         endscript
103    -\}
104    +}
105    +
106    +/var/log/php/*/[!php]*.log {
107    +    missingok
108    +    notifempty
109    +    sharedscripts
110    +    delaycompress
111    +    su www www
112    +    create 600 www www
113    +    postrotate
114    +      /sbin/e-smith/service php-fpm reload >/dev/null 2>&1 || true
115    +      /sbin/e-smith/service php55-php-fpm reload >/dev/null 2>&1 || true
116    +      /sbin/e-smith/service php56-php-fpm reload >/dev/null 2>&1 || true
117    +      /sbin/e-smith/service php70-php-fpm reload >/dev/null 2>&1 || true
118    +      /sbin/e-smith/service php71-php-fpm reload >/dev/null 2>&1 || true
119    +      /sbin/e-smith/service php72-php-fpm reload >/dev/null 2>&1 || true
120    +      /sbin/e-smith/service php73-php-fpm reload >/dev/null 2>&1 || true
121    +      /sbin/e-smith/service php74-php-fpm reload >/dev/null 2>&1 || true
122    +    endscript
123    +}
124    +";
125    +
126    +}


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed