/[smecontribs]/rpms/smeserver-freepbx/contribs10/smeserver-freepbx-14-bz12481-bz12506.patch
ViewVC logotype

Annotation of /rpms/smeserver-freepbx/contribs10/smeserver-freepbx-14-bz12481-bz12506.patch

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


Revision 1.1 - (hide annotations) (download)
Tue Apr 23 03:09:23 2024 UTC (7 months, 1 week ago) by jpp
Branch: MAIN
* Mon Apr 22 2024 Jean-Philippe Pialasse <jpp@koozali.org> 14-14.sme
- some logs not rotated [SME: 12506]
- moving freepbx php error log from /var/log/php [SME: 12481]

1 jpp 1.1 diff -Nur --no-dereference smeserver-freepbx-14.old/root/etc/e-smith/templates/etc/logrotate.d/asterisk/All smeserver-freepbx-14/root/etc/e-smith/templates/etc/logrotate.d/asterisk/All
2     --- smeserver-freepbx-14.old/root/etc/e-smith/templates/etc/logrotate.d/asterisk/All 2022-03-27 23:45:44.000000000 -0400
3     +++ smeserver-freepbx-14/root/etc/e-smith/templates/etc/logrotate.d/asterisk/All 2024-04-22 22:48:19.808000000 -0400
4     @@ -10,6 +10,13 @@
5     /var/log/asterisk/cdr-csv/Master.csv
6     /var/log/asterisk/warnings
7     /var/log/asterisk/misdn.log
8     +/var/log/asterisk/backup.log
9     +/var/log/asterisk/backup-*.log
10     +/var/log/asterisk/freepbx_dbug
11     +/var/log/asterisk/core-fastagi_out.log
12     +/var/log/asterisk/core-calltransfer-monitor_err.log
13     +/var/log/asterisk/core-calltransfer-monitor_out.log
14     +/var/log/asterisk/event_log
15     \{
16     missingok
17     notifempty
18     diff -Nur --no-dereference smeserver-freepbx-14.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/16freepbx smeserver-freepbx-14/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/16freepbx
19     --- smeserver-freepbx-14.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/16freepbx 2024-04-22 22:38:48.488000000 -0400
20     +++ smeserver-freepbx-14/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/16freepbx 2024-04-22 22:50:58.057000000 -0400
21     @@ -8,7 +8,7 @@
22     my $memory_limit = ($freepbx{MemoryLimit} || '512M');
23     $memory_limit .= 'M' if ($memory_limit =~ m/^\d+$/);
24     my $open_basedir= $freepbx{PHPBaseDir} || '';
25     - $open_basedir = "/usr/share/freepbx:/var/lib/freepbx:/var/log/freepbx.log:/var/lib/php/freepbx:/home/e-smith/files/freepbx:/dev/urandom:/proc/meminfo:$open_basedir";
26     + $open_basedir = "/usr/share/freepbx:/var/lib/freepbx:/var/log/freepbx/:/var/lib/php/freepbx:/home/e-smith/files/freepbx:/dev/urandom:/proc/meminfo:$open_basedir";
27     my $id = 'freepbx';
28     my $max_children = $freepbx{'PHPmaxChildren'} || 15;
29     my $min_spare_servers = $freepbx{'PHPminServers'} || 3;
30     @@ -41,7 +41,7 @@
31    
32     php_flag[display_errors] = off
33     php_admin_flag[log_errors] = on
34     -php_admin_value[error_log] = /var/log/php/$id/error.log
35     +php_admin_value[error_log] = /var/log/$id/error.log
36     php_admin_value[memory_limit] = $memory_limit
37     php_admin_value[session.save_path] = /var/lib/php/fpbx-session
38     php_admin_value[upload_tmp_dir] = /var/lib/php/$id/tmp
39     diff -Nur --no-dereference smeserver-freepbx-14.old/root/etc/logrotate.d/freepbx smeserver-freepbx-14/root/etc/logrotate.d/freepbx
40     --- smeserver-freepbx-14.old/root/etc/logrotate.d/freepbx 1969-12-31 19:00:00.000000000 -0500
41     +++ smeserver-freepbx-14/root/etc/logrotate.d/freepbx 2024-04-22 22:55:02.323000000 -0400
42     @@ -0,0 +1,13 @@
43     +/var/log/freepbx/*.log {
44     + missingok
45     + notifempty
46     + sharedscripts
47     + delaycompress
48     + su asterisk asterisk
49     + create 660 asterisk asterisk
50     + postrotate
51     + /sbin/e-smith/service php56-php-fpm reload >/dev/null 2>&1 || true
52     + /sbin/e-smith/service php74-php-fpm reload >/dev/null 2>&1 || true
53     + endscript
54     +}
55     +

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