Ticket #2253: FreeBSD_logrotate.patch
| File FreeBSD_logrotate.patch, 2.3 KB (added by BeNe, 2 years ago) |
|---|
-
configs/freebsd/logrotate/ispcp
36 36 compress 37 37 delaycompress 38 38 notifempty 39 create 640 root adm39 create 640 root wheel 40 40 sharedscripts 41 41 prerotate 42 42 /usr/local/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log … … 55 55 compress 56 56 delaycompress 57 57 notifempty 58 create 640 root adm58 create 640 root wheel 59 59 } 60 60 61 61 # Rotation for apache2, launching general statistics if awstats is installed … … 67 67 compress 68 68 delaycompress 69 69 notifempty 70 create 640 root adm70 create 640 root wheel 71 71 sharedscripts 72 72 prerotate 73 if [ `cat / etc/ispcp/ispcp.conf | grep -c "AWSTATS_ACTIVE = yes"` == 1 ]; then74 perl / var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl &> /dev/null73 if [ `cat /usr/local/etc/ispcp/ispcp.conf | grep -c "AWSTATS_ACTIVE = yes"` == 1 ]; then 74 perl /usr/local/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/local/www/awstats/cgi-bin/awstats.pl &> /dev/null 75 75 fi 76 76 endscript 77 77 postrotate 78 if [ -f "`. / etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then79 / etc/init.d/apache2 reload > /dev/null78 if [ -f "`. /usr/local/sbin/envvars ; echo ${APACHE_PID_FILE:-/var/run/httpd.pid}`" ]; then 79 /usr/local/etc/rc.d/apache22 reload > /dev/null 80 80 fi 81 81 endscript 82 82 } … … 90 90 compress 91 91 delaycompress 92 92 postrotate 93 if [ -e /var/run/syslog d.pid ]; then93 if [ -e /var/run/syslog.pid ]; then 94 94 /usr/bin/killall -HUP syslogd 95 95 elif [ -e /var/run/rsyslogd.pid ]; then 96 96 /usr/bin/killall -HUP rsyslogd … … 107 107 compress 108 108 delaycompress 109 109 prerotate 110 / var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log110 /usr/local/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log 111 111 endscript 112 112 postrotate 113 if [ -e /var/run/syslog d.pid ]; then113 if [ -e /var/run/syslog.pid ]; then 114 114 /usr/bin/killall -HUP syslogd 115 115 elif [ -e /var/run/rsyslogd.pid ]; then 116 116 /usr/bin/killall -HUP rsyslogd
