Ticket #2097: #2097.patch

File #2097.patch, 25.5 KB (added by benedikt, 2 years ago)

fixed against r2533

  • centos/logrotate/ispcp

     
     1# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     2# Copyright (C) 2001-2006 by moleSoftware GmbH - http://www.molesoftware.com 
     3# Copyright (C) 2006-2010 by isp Control Panel - http://ispcp.net 
     4# 
     5# Version: $id$ 
     6# 
     7# The contents of this file are subject to the Mozilla Public License 
     8# Version 1.1 (the "License"); you may not use this file except in 
     9# compliance with the License. You may obtain a copy of the License at 
     10# http://www.mozilla.org/MPL/ 
     11# 
     12# Software distributed under the License is distributed on an "AS IS" 
     13# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the 
     14# License for the specific language governing rights and limitations 
     15# under the License. 
     16# 
     17# The Original Code is "VHCS - Virtual Hosting Control System". 
     18# 
     19# The Initial Developer of the Original Code is moleSoftware GmbH. 
     20# Portions created by Initial Developer are Copyright (C) 2001-2006 
     21# by moleSoftware GmbH. All Rights Reserved. 
     22# Portions created by the ispCP Team are Copyright (C) 2006-2010 by 
     23# isp Control Panel. All Rights Reserved. 
     24# 
     25# The ispCP ω Home Page is: 
     26# 
     27#    http://isp-control.net 
     28# 
     29 
     30# Rotation for user logs for ispCP traffic count 
     31# 
    132/var/log/httpd/users/*.log { 
    233  weekly 
    334  missingok 
     
    1546  endscript 
    1647} 
    1748 
     49# Rotation for user traffic prevs 
     50# 
    1851/var/log/httpd/backup/*.log.perv { 
    1952  size 5M 
    2053  missingok 
     
    2558  create 640 root adm 
    2659} 
    2760 
     61# Rotation for apache2, launching general statistics if awstats is installed 
     62# 
     63/var/log/httpd/*.log { 
     64  weekly 
     65  missingok 
     66  rotate 52 
     67  compress 
     68  delaycompress 
     69  notifempty 
     70  create 640 root adm 
     71  sharedscripts 
     72  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 
     75    fi 
     76  endscript 
     77  postrotate 
     78    if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then 
     79           /etc/init.d/apache2 reload > /dev/null 
     80    fi 
     81  endscript 
     82} 
     83 
     84# Transfer rotation for ProFTPd 
     85# 
    2886/var/log/xferlog { 
    2987  daily 
    3088  rotate 7 
     
    4098  endscript 
    4199} 
    42100 
     101# ProFTPd traffic rotation for ispCP traffic count 
     102# 
    43103/var/log/ftp_traff.log { 
    44104  daily 
    45105  rotate 7 
  • debian/logrotate/ispcp

     
     1# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     2# Copyright (C) 2001-2006 by moleSoftware GmbH - http://www.molesoftware.com 
     3# Copyright (C) 2006-2010 by isp Control Panel - http://ispcp.net 
     4# 
     5# Version: $id$ 
     6# 
     7# The contents of this file are subject to the Mozilla Public License 
     8# Version 1.1 (the "License"); you may not use this file except in 
     9# compliance with the License. You may obtain a copy of the License at 
     10# http://www.mozilla.org/MPL/ 
     11# 
     12# Software distributed under the License is distributed on an "AS IS" 
     13# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the 
     14# License for the specific language governing rights and limitations 
     15# under the License. 
     16# 
     17# The Original Code is "VHCS - Virtual Hosting Control System". 
     18# 
     19# The Initial Developer of the Original Code is moleSoftware GmbH. 
     20# Portions created by Initial Developer are Copyright (C) 2001-2006 
     21# by moleSoftware GmbH. All Rights Reserved. 
     22# Portions created by the ispCP Team are Copyright (C) 2006-2010 by 
     23# isp Control Panel. All Rights Reserved. 
     24# 
     25# The ispCP ω Home Page is: 
     26# 
     27#    http://isp-control.net 
     28# 
     29 
     30# Rotation for user logs for ispCP traffic count 
     31# 
    132/var/log/apache2/users/*.log { 
    233  weekly 
    334  missingok 
     
    1142    /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log 
    1243  endscript 
    1344  postrotate 
    14     /etc/init.d/apache2 reload > /dev/null 
     45    if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then 
     46      /etc/init.d/apache2 reload > /dev/null 
     47    fi 
    1548  endscript 
    1649} 
    1750 
     51# Rotation for user traffic prevs 
     52# 
    1853/var/log/apache2/backup/*.log.prev { 
    1954  size 5M 
    2055  missingok 
     
    2560  create 640 root adm 
    2661} 
    2762 
     63# Rotation for apache2, launching general statistics if awstats is installed 
     64# 
     65/var/log/apache2/*.log { 
     66  weekly 
     67  missingok 
     68  rotate 52 
     69  compress 
     70  delaycompress 
     71  notifempty 
     72  create 640 root adm 
     73  sharedscripts 
     74  prerotate 
     75    if [ `cat /etc/ispcp/ispcp.conf | grep -c "AWSTATS_ACTIVE = yes"` == 1 ]; then 
     76          perl /var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl &> /dev/null 
     77    fi 
     78  endscript 
     79  postrotate 
     80    if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then 
     81           /etc/init.d/apache2 reload > /dev/null 
     82    fi 
     83  endscript 
     84} 
     85 
     86# Transfer rotation for ProFTPd 
     87# 
    2888/var/log/proftpd/xferlog { 
    2989  daily 
    3090  rotate 7 
     
    40100  endscript 
    41101} 
    42102 
     103# ProFTPd traffic rotation for ispCP traffic count 
     104# 
    43105/var/log/proftpd/ftp_traff.log { 
    44106  daily 
    45107  rotate 7 
     
    56118      /usr/bin/killall -HUP rsyslogd 
    57119    fi 
    58120  endscript 
    59 } 
     121} 
     122 No newline at end of file 
  • fedora/logrotate/ispcp

     
     1# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     2# Copyright (C) 2001-2006 by moleSoftware GmbH - http://www.molesoftware.com 
     3# Copyright (C) 2006-2010 by isp Control Panel - http://ispcp.net 
     4# 
     5# Version: $id$ 
     6# 
     7# The contents of this file are subject to the Mozilla Public License 
     8# Version 1.1 (the "License"); you may not use this file except in 
     9# compliance with the License. You may obtain a copy of the License at 
     10# http://www.mozilla.org/MPL/ 
     11# 
     12# Software distributed under the License is distributed on an "AS IS" 
     13# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the 
     14# License for the specific language governing rights and limitations 
     15# under the License. 
     16# 
     17# The Original Code is "VHCS - Virtual Hosting Control System". 
     18# 
     19# The Initial Developer of the Original Code is moleSoftware GmbH. 
     20# Portions created by Initial Developer are Copyright (C) 2001-2006 
     21# by moleSoftware GmbH. All Rights Reserved. 
     22# Portions created by the ispCP Team are Copyright (C) 2006-2010 by 
     23# isp Control Panel. All Rights Reserved. 
     24# 
     25# The ispCP ω Home Page is: 
     26# 
     27#    http://isp-control.net 
     28# 
     29 
     30# Rotation for user logs for ispCP traffic count 
     31# 
    132/var/log/httpd/users/*.log { 
    233  weekly 
    334  missingok 
     
    1546  endscript 
    1647} 
    1748 
     49# Rotation for user traffic prevs 
     50# 
    1851/var/log/httpd/backup/*.log.perv { 
    1952  size 5M 
    2053  missingok 
     
    2558  create 640 root adm 
    2659} 
    2760 
     61# Rotation for apache2, launching general statistics if awstats is installed 
     62# 
     63/var/log/httpd/*.log { 
     64  weekly 
     65  missingok 
     66  rotate 52 
     67  compress 
     68  delaycompress 
     69  notifempty 
     70  create 640 root adm 
     71  sharedscripts 
     72  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 
     75    fi 
     76  endscript 
     77  postrotate 
     78    if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then 
     79           /etc/init.d/apache2 reload > /dev/null 
     80    fi 
     81  endscript 
     82} 
     83 
     84# Transfer rotation for ProFTPd 
     85# 
    2886/var/log/xferlog { 
    2987  daily 
    3088  rotate 7 
     
    4098  endscript 
    4199} 
    42100 
     101# ProFTPd traffic rotation for ispCP traffic count 
     102# 
    43103/var/log/ftp_traff.log { 
    44104  daily 
    45105  rotate 7 
     
    50110    /var/www/ispcp/engine/traffic/ispcp-vrl-traff &> /var/log/ispcp/ispcp-vrl-traff.log 
    51111  endscript 
    52112  postrotate 
    53      if [ -e /var/run/syslogd.pid ]; then 
     113    if [ -e /var/run/syslogd.pid ]; then 
    54114      /usr/bin/killall -HUP syslogd 
    55115    elif [ -e /var/run/rsyslogd.pid ]; then 
    56116      /usr/bin/killall -HUP rsyslogd 
    57117    fi 
    58118  endscript 
    59 } 
     119} 
     120 No newline at end of file 
  • freebsd/logrotate/ispcp

     
     1# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     2# Copyright (C) 2001-2006 by moleSoftware GmbH - http://www.molesoftware.com 
     3# Copyright (C) 2006-2010 by isp Control Panel - http://ispcp.net 
     4# 
     5# Version: $id$ 
     6# 
     7# The contents of this file are subject to the Mozilla Public License 
     8# Version 1.1 (the "License"); you may not use this file except in 
     9# compliance with the License. You may obtain a copy of the License at 
     10# http://www.mozilla.org/MPL/ 
     11# 
     12# Software distributed under the License is distributed on an "AS IS" 
     13# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the 
     14# License for the specific language governing rights and limitations 
     15# under the License. 
     16# 
     17# The Original Code is "VHCS - Virtual Hosting Control System". 
     18# 
     19# The Initial Developer of the Original Code is moleSoftware GmbH. 
     20# Portions created by Initial Developer are Copyright (C) 2001-2006 
     21# by moleSoftware GmbH. All Rights Reserved. 
     22# Portions created by the ispCP Team are Copyright (C) 2006-2010 by 
     23# isp Control Panel. All Rights Reserved. 
     24# 
     25# The ispCP ω Home Page is: 
     26# 
     27#    http://isp-control.net 
     28# 
     29 
     30# Rotation for user logs for ispCP traffic count 
     31# 
    132/usr/local/www/logs/users/*.log { 
    233  weekly 
    334  missingok 
     
    1546  endscript 
    1647} 
    1748 
     49# Rotation for user traffic prevs 
     50# 
    1851/usr/local/www/logs/backup/*.log.perv { 
    1952  size 5M 
    2053  missingok 
     
    2558  create 640 root adm 
    2659} 
    2760 
     61# Rotation for apache2, launching general statistics if awstats is installed 
     62# 
     63/usr/local/www/logs/*.log { 
     64  weekly 
     65  missingok 
     66  rotate 52 
     67  compress 
     68  delaycompress 
     69  notifempty 
     70  create 640 root adm 
     71  sharedscripts 
     72  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 
     75    fi 
     76  endscript 
     77  postrotate 
     78    if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then 
     79           /etc/init.d/apache2 reload > /dev/null 
     80    fi 
     81  endscript 
     82} 
     83 
     84# Transfer rotation for ProFTPd 
     85# 
    2886/var/log/proftpd/xferlog { 
    2987  daily 
    3088  rotate 7 
     
    4098  endscript 
    4199} 
    42100 
     101# ProFTPd traffic rotation for ispCP traffic count 
     102# 
    43103/var/log/proftpd/ftp_traff.log { 
    44104  daily 
    45105  rotate 7 
     
    56116      /usr/bin/killall -HUP rsyslogd 
    57117    fi 
    58118  endscript 
    59 } 
     119} 
     120 No newline at end of file 
  • gentoo/logrotate/ispcp

     
     1# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     2# Copyright (C) 2001-2006 by moleSoftware GmbH - http://www.molesoftware.com 
     3# Copyright (C) 2006-2010 by isp Control Panel - http://ispcp.net 
     4# 
     5# Version: $id$ 
     6# 
     7# The contents of this file are subject to the Mozilla Public License 
     8# Version 1.1 (the "License"); you may not use this file except in 
     9# compliance with the License. You may obtain a copy of the License at 
     10# http://www.mozilla.org/MPL/ 
     11# 
     12# Software distributed under the License is distributed on an "AS IS" 
     13# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the 
     14# License for the specific language governing rights and limitations 
     15# under the License. 
     16# 
     17# The Original Code is "VHCS - Virtual Hosting Control System". 
     18# 
     19# The Initial Developer of the Original Code is moleSoftware GmbH. 
     20# Portions created by Initial Developer are Copyright (C) 2001-2006 
     21# by moleSoftware GmbH. All Rights Reserved. 
     22# Portions created by the ispCP Team are Copyright (C) 2006-2010 by 
     23# isp Control Panel. All Rights Reserved. 
     24# 
     25# The ispCP ω Home Page is: 
     26# 
     27#    http://isp-control.net 
     28# 
     29 
     30# Rotation for user logs for ispCP traffic count 
     31# 
    132/var/log/apache2/users/*.log { 
    233  weekly 
    334  missingok 
     
    1142    /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log 
    1243  endscript 
    1344  postrotate 
    14     /etc/init.d/apache2 reload > /dev/null 
     45    if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then 
     46      /etc/init.d/apache2 reload > /dev/null 
     47    fi 
    1548  endscript 
    1649} 
    1750 
    18 /var/log/apache2/backup/*.log.perv { 
     51# Rotation for user traffic prevs 
     52# 
     53/var/log/apache2/backup/*.log.prev { 
    1954  size 5M 
    2055  missingok 
    2156  rotate 5 
     
    2560  create 640 root adm 
    2661} 
    2762 
     63# Rotation for apache2, launching general statistics if awstats is installed 
     64# 
     65/var/log/apache2/*.log { 
     66  weekly 
     67  missingok 
     68  rotate 52 
     69  compress 
     70  delaycompress 
     71  notifempty 
     72  create 640 root adm 
     73  sharedscripts 
     74  prerotate 
     75    if [ `cat /etc/ispcp/ispcp.conf | grep -c "AWSTATS_ACTIVE = yes"` == 1 ]; then 
     76          perl /var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl &> /dev/null 
     77    fi 
     78  endscript 
     79  postrotate 
     80    if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then 
     81           /etc/init.d/apache2 reload > /dev/null 
     82    fi 
     83  endscript 
     84} 
     85 
     86# Transfer rotation for ProFTPd 
     87# 
    2888/var/log/proftpd/xferlog { 
    2989  daily 
    3090  rotate 7 
     
    40100  endscript 
    41101} 
    42102 
     103# ProFTPd traffic rotation for ispCP traffic count 
     104# 
    43105/var/log/proftpd/ftp_traff.log { 
    44106  daily 
    45107  rotate 7 
     
    56118      /usr/bin/killall -HUP rsyslogd 
    57119    fi 
    58120  endscript 
    59 } 
     121} 
     122 No newline at end of file 
  • openbsd/logrotate/ispcp

     
     1# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     2# Copyright (C) 2001-2006 by moleSoftware GmbH - http://www.molesoftware.com 
     3# Copyright (C) 2006-2010 by isp Control Panel - http://ispcp.net 
     4# 
     5# Version: $id$ 
     6# 
     7# The contents of this file are subject to the Mozilla Public License 
     8# Version 1.1 (the "License"); you may not use this file except in 
     9# compliance with the License. You may obtain a copy of the License at 
     10# http://www.mozilla.org/MPL/ 
     11# 
     12# Software distributed under the License is distributed on an "AS IS" 
     13# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the 
     14# License for the specific language governing rights and limitations 
     15# under the License. 
     16# 
     17# The Original Code is "VHCS - Virtual Hosting Control System". 
     18# 
     19# The Initial Developer of the Original Code is moleSoftware GmbH. 
     20# Portions created by Initial Developer are Copyright (C) 2001-2006 
     21# by moleSoftware GmbH. All Rights Reserved. 
     22# Portions created by the ispCP Team are Copyright (C) 2006-2010 by 
     23# isp Control Panel. All Rights Reserved. 
     24# 
     25# The ispCP ω Home Page is: 
     26# 
     27#    http://isp-control.net 
     28# 
     29 
     30# Rotation for user logs for ispCP traffic count 
     31# 
    132/var/log/apache2/users/*.log { 
    233  weekly 
    334  missingok 
     
    1142    /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log 
    1243  endscript 
    1344  postrotate 
    14     /etc/init.d/apache2 reload > /dev/null 
     45    if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then 
     46      /etc/init.d/apache2 reload > /dev/null 
     47    fi 
    1548  endscript 
    1649} 
    1750 
    18 /var/log/apache2/backup/*.log.perv { 
     51# Rotation for user traffic prevs 
     52# 
     53/var/log/apache2/backup/*.log.prev { 
    1954  size 5M 
    2055  missingok 
    2156  rotate 5 
     
    2560  create 640 root adm 
    2661} 
    2762 
     63# Rotation for apache2, launching general statistics if awstats is installed 
     64# 
     65/var/log/apache2/*.log { 
     66  weekly 
     67  missingok 
     68  rotate 52 
     69  compress 
     70  delaycompress 
     71  notifempty 
     72  create 640 root adm 
     73  sharedscripts 
     74  prerotate 
     75    if [ `cat /etc/ispcp/ispcp.conf | grep -c "AWSTATS_ACTIVE = yes"` == 1 ]; then 
     76          perl /var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl &> /dev/null 
     77    fi 
     78  endscript 
     79  postrotate 
     80    if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then 
     81           /etc/init.d/apache2 reload > /dev/null 
     82    fi 
     83  endscript 
     84} 
     85 
     86# Transfer rotation for ProFTPd 
     87# 
    2888/var/log/proftpd/xferlog { 
    2989  daily 
    3090  rotate 7 
     
    40100  endscript 
    41101} 
    42102 
     103# ProFTPd traffic rotation for ispCP traffic count 
     104# 
    43105/var/log/proftpd/ftp_traff.log { 
    44106  daily 
    45107  rotate 7 
     
    56118      /usr/bin/killall -HUP rsyslogd 
    57119    fi 
    58120  endscript 
    59 } 
     121} 
     122 No newline at end of file 
  • opensuse/logrotate/ispcp

     
     1# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     2# Copyright (C) 2001-2006 by moleSoftware GmbH - http://www.molesoftware.com 
     3# Copyright (C) 2006-2010 by isp Control Panel - http://ispcp.net 
     4# 
     5# Version: $id$ 
     6# 
     7# The contents of this file are subject to the Mozilla Public License 
     8# Version 1.1 (the "License"); you may not use this file except in 
     9# compliance with the License. You may obtain a copy of the License at 
     10# http://www.mozilla.org/MPL/ 
     11# 
     12# Software distributed under the License is distributed on an "AS IS" 
     13# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the 
     14# License for the specific language governing rights and limitations 
     15# under the License. 
     16# 
     17# The Original Code is "VHCS - Virtual Hosting Control System". 
     18# 
     19# The Initial Developer of the Original Code is moleSoftware GmbH. 
     20# Portions created by Initial Developer are Copyright (C) 2001-2006 
     21# by moleSoftware GmbH. All Rights Reserved. 
     22# Portions created by the ispCP Team are Copyright (C) 2006-2010 by 
     23# isp Control Panel. All Rights Reserved. 
     24# 
     25# The ispCP ω Home Page is: 
     26# 
     27#    http://isp-control.net 
     28# 
     29 
     30# Rotation for user logs for ispCP traffic count 
     31# 
    132/var/log/apache2/users/*.log { 
    233  weekly 
    334  missingok 
     
    839  create 640 root root 
    940  sharedscripts 
    1041  prerotate 
    11     /srv/www/ispcp/engine/traffic/ispcp-srv-traff &>/var/log/ispcp/ispcp-srv-traff.log 
     42    /srv/www/ispcp/engine/traffic/ispcp-srv-traff-SUSE &>/var/log/ispcp/ispcp-srv-traff.log 
    1243  endscript 
    1344  postrotate 
    14     /etc/init.d/apache2 reload > /dev/null 
     45    if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then 
     46      /etc/init.d/apache2 reload > /dev/null 
     47    fi 
    1548  endscript 
    1649} 
    1750 
    18 /var/log/apache2/backup/*.log.perv { 
     51# Rotation for user traffic prevs 
     52# 
     53/var/log/apache2/backup/*.log.prev { 
    1954  size 5M 
    2055  missingok 
    2156  rotate 5 
     
    2560  create 640 root root 
    2661} 
    2762 
     63# Rotation for apache2, launching general statistics if awstats is installed 
     64# 
     65/var/log/apache2/*.log { 
     66  weekly 
     67  missingok 
     68  rotate 52 
     69  compress 
     70  delaycompress 
     71  notifempty 
     72  create 640 root root 
     73  sharedscripts 
     74  prerotate 
     75    if [ `cat /etc/ispcp/ispcp.conf | grep -c "AWSTATS_ACTIVE = yes"` == 1 ]; then 
     76          perl /srv/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl &> /dev/null 
     77    fi 
     78  endscript 
     79  postrotate 
     80    if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then 
     81           /etc/init.d/apache2 reload > /dev/null 
     82    fi 
     83  endscript 
     84} 
     85 
     86# Transfer rotation for ProFTPd 
     87# 
    2888/var/log/proftpd/xferlog { 
    2989  daily 
    3090  rotate 7 
     
    3696      /usr/bin/killall -HUP syslog-ng 
    3797    elif [ -e /var/run/rsyslogd.pid ]; then 
    3898      /usr/bin/killall -HUP rsyslogd 
    39         fi 
     99    fi 
    40100  endscript 
    41101} 
    42102 
     103# ProFTPd traffic rotation for ispCP traffic count 
     104# 
    43105/var/log/proftpd/ftp_traff.log { 
    44106  daily 
    45107  rotate 7 
  • redhat/logrotate/ispcp

     
     1# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     2# Copyright (C) 2001-2006 by moleSoftware GmbH - http://www.molesoftware.com 
     3# Copyright (C) 2006-2010 by isp Control Panel - http://ispcp.net 
     4# 
     5# Version: $id$ 
     6# 
     7# The contents of this file are subject to the Mozilla Public License 
     8# Version 1.1 (the "License"); you may not use this file except in 
     9# compliance with the License. You may obtain a copy of the License at 
     10# http://www.mozilla.org/MPL/ 
     11# 
     12# Software distributed under the License is distributed on an "AS IS" 
     13# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the 
     14# License for the specific language governing rights and limitations 
     15# under the License. 
     16# 
     17# The Original Code is "VHCS - Virtual Hosting Control System". 
     18# 
     19# The Initial Developer of the Original Code is moleSoftware GmbH. 
     20# Portions created by Initial Developer are Copyright (C) 2001-2006 
     21# by moleSoftware GmbH. All Rights Reserved. 
     22# Portions created by the ispCP Team are Copyright (C) 2006-2010 by 
     23# isp Control Panel. All Rights Reserved. 
     24# 
     25# The ispCP ω Home Page is: 
     26# 
     27#    http://isp-control.net 
     28# 
     29 
     30# Rotation for user logs for ispCP traffic count 
     31# 
    132/var/log/apache2/users/*.log { 
    233  weekly 
    334  missingok 
     
    1142    /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log 
    1243  endscript 
    1344  postrotate 
    14     /etc/init.d/apache2 reload > /dev/null 
     45    if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then 
     46      /etc/init.d/apache2 reload > /dev/null 
     47    fi 
    1548  endscript 
    1649} 
    1750 
    18 /var/log/apache2/backup/*.log.perv { 
     51# Rotation for user traffic prevs 
     52# 
     53/var/log/apache2/backup/*.log.prev { 
    1954  size 5M 
    2055  missingok 
    2156  rotate 5 
    2257  compress 
    2358  delaycompress 
    2459  notifempty 
    25         create 640 root adm 
     60  create 640 root adm 
     61} 
     62 
     63# Rotation for apache2, launching general statistics if awstats is installed 
     64# 
     65/var/log/apache2/*.log { 
     66  weekly 
     67  missingok 
     68  rotate 52 
     69  compress 
     70  delaycompress 
     71  notifempty 
     72  create 640 root adm 
     73  sharedscripts 
     74  prerotate 
     75    if [ `cat /etc/ispcp/ispcp.conf | grep -c "AWSTATS_ACTIVE = yes"` == 1 ]; then 
     76          perl /var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl &> /dev/null 
     77    fi 
     78  endscript 
     79  postrotate 
     80    if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then 
     81           /etc/init.d/apache2 reload > /dev/null 
     82    fi 
     83  endscript 
    2684} 
    2785 
     86# Transfer rotation for ProFTPd 
     87# 
    2888/var/log/proftpd/xferlog { 
    2989  daily 
    3090  rotate 7 
     
    40100  endscript 
    41101} 
    42102 
     103# ProFTPd traffic rotation for ispCP traffic count 
     104# 
    43105/var/log/proftpd/ftp_traff.log { 
    44106  daily 
    45107  rotate 7 
     
    56118      /usr/bin/killall -HUP rsyslogd 
    57119    fi 
    58120  endscript 
    59 } 
     121} 
     122 No newline at end of file 
  • ubuntu/logrotate/ispcp

     
     1# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     2# Copyright (C) 2001-2006 by moleSoftware GmbH - http://www.molesoftware.com 
     3# Copyright (C) 2006-2010 by isp Control Panel - http://ispcp.net 
     4# 
     5# Version: $id$ 
     6# 
     7# The contents of this file are subject to the Mozilla Public License 
     8# Version 1.1 (the "License"); you may not use this file except in 
     9# compliance with the License. You may obtain a copy of the License at 
     10# http://www.mozilla.org/MPL/ 
     11# 
     12# Software distributed under the License is distributed on an "AS IS" 
     13# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the 
     14# License for the specific language governing rights and limitations 
     15# under the License. 
     16# 
     17# The Original Code is "VHCS - Virtual Hosting Control System". 
     18# 
     19# The Initial Developer of the Original Code is moleSoftware GmbH. 
     20# Portions created by Initial Developer are Copyright (C) 2001-2006 
     21# by moleSoftware GmbH. All Rights Reserved. 
     22# Portions created by the ispCP Team are Copyright (C) 2006-2010 by 
     23# isp Control Panel. All Rights Reserved. 
     24# 
     25# The ispCP ω Home Page is: 
     26# 
     27#    http://isp-control.net 
     28# 
     29 
     30# Rotation for user logs for ispCP traffic count 
     31# 
    132/var/log/apache2/users/*.log { 
    233  weekly 
    334  missingok 
     
    1142    /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log 
    1243  endscript 
    1344  postrotate 
    14     /etc/init.d/apache2 reload > /dev/null 
     45    if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then 
     46      /etc/init.d/apache2 reload > /dev/null 
     47    fi 
    1548  endscript 
    1649} 
    1750 
    18 /var/log/apache2/backup/*.log.perv { 
     51# Rotation for user traffic prevs 
     52# 
     53/var/log/apache2/backup/*.log.prev { 
    1954  size 5M 
    2055  missingok 
    2156  rotate 5 
     
    2560  create 640 root adm 
    2661} 
    2762 
     63# Rotation for apache2, launching general statistics if awstats is installed 
     64# 
     65/var/log/apache2/*.log { 
     66  weekly 
     67  missingok 
     68  rotate 52 
     69  compress 
     70  delaycompress 
     71  notifempty 
     72  create 640 root adm 
     73  sharedscripts 
     74  prerotate 
     75    if [ `cat /etc/ispcp/ispcp.conf | grep -c "AWSTATS_ACTIVE = yes"` == 1 ]; then 
     76          perl /var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl &> /dev/null 
     77    fi 
     78  endscript 
     79  postrotate 
     80    if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then 
     81           /etc/init.d/apache2 reload > /dev/null 
     82    fi 
     83  endscript 
     84} 
     85 
     86# Transfer rotation for ProFTPd 
     87# 
    2888/var/log/proftpd/xferlog { 
    2989  daily 
    3090  rotate 7 
     
    40100  endscript 
    41101} 
    42102 
     103# ProFTPd traffic rotation for ispCP traffic count 
     104# 
    43105/var/log/proftpd/ftp_traff.log { 
    44106  daily 
    45107  rotate 7 
     
    56118      /usr/bin/killall -HUP rsyslogd 
    57119    fi 
    58120  endscript 
    59 } 
     121} 
     122 No newline at end of file