Ticket #2253: FreeBSD_logrotate.patch

File FreeBSD_logrotate.patch, 2.3 KB (added by BeNe, 2 years ago)
  • configs/freebsd/logrotate/ispcp

     
    3636  compress 
    3737  delaycompress 
    3838  notifempty 
    39   create 640 root adm 
     39  create 640 root wheel 
    4040  sharedscripts 
    4141  prerotate 
    4242    /usr/local/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log 
     
    5555  compress 
    5656  delaycompress 
    5757  notifempty 
    58   create 640 root adm 
     58  create 640 root wheel 
    5959} 
    6060 
    6161# Rotation for apache2, launching general statistics if awstats is installed 
     
    6767  compress 
    6868  delaycompress 
    6969  notifempty 
    70   create 640 root adm 
     70  create 640 root wheel 
    7171  sharedscripts 
    7272  prerotate 
    73     if [ `cat /etc/ispcp/ispcp.conf | grep -c "AWSTATS_ACTIVE = yes"` == 1 ]; then 
    74           perl /var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl &> /dev/null 
     73    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 
    7575    fi 
    7676  endscript 
    7777  postrotate 
    78     if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then 
    79            /etc/init.d/apache2 reload > /dev/null 
     78    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 
    8080    fi 
    8181  endscript 
    8282} 
     
    9090  compress 
    9191  delaycompress 
    9292  postrotate 
    93     if [ -e /var/run/syslogd.pid ]; then 
     93    if [ -e /var/run/syslog.pid ]; then 
    9494      /usr/bin/killall -HUP syslogd 
    9595    elif [ -e /var/run/rsyslogd.pid ]; then 
    9696      /usr/bin/killall -HUP rsyslogd 
     
    107107  compress 
    108108  delaycompress 
    109109  prerotate 
    110     /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log 
     110    /usr/local/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log 
    111111  endscript 
    112112  postrotate 
    113     if [ -e /var/run/syslogd.pid ]; then 
     113    if [ -e /var/run/syslog.pid ]; then 
    114114      /usr/bin/killall -HUP syslogd 
    115115    elif [ -e /var/run/rsyslogd.pid ]; then 
    116116      /usr/bin/killall -HUP rsyslogd