Ticket #2097: #2097.patch
| File #2097.patch, 25.5 KB (added by benedikt, 2 years ago) |
|---|
-
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 # 1 32 /var/log/httpd/users/*.log { 2 33 weekly 3 34 missingok … … 15 46 endscript 16 47 } 17 48 49 # Rotation for user traffic prevs 50 # 18 51 /var/log/httpd/backup/*.log.perv { 19 52 size 5M 20 53 missingok … … 25 58 create 640 root adm 26 59 } 27 60 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 # 28 86 /var/log/xferlog { 29 87 daily 30 88 rotate 7 … … 40 98 endscript 41 99 } 42 100 101 # ProFTPd traffic rotation for ispCP traffic count 102 # 43 103 /var/log/ftp_traff.log { 44 104 daily 45 105 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 # 1 32 /var/log/apache2/users/*.log { 2 33 weekly 3 34 missingok … … 11 42 /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log 12 43 endscript 13 44 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 15 48 endscript 16 49 } 17 50 51 # Rotation for user traffic prevs 52 # 18 53 /var/log/apache2/backup/*.log.prev { 19 54 size 5M 20 55 missingok … … 25 60 create 640 root adm 26 61 } 27 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 84 } 85 86 # Transfer rotation for ProFTPd 87 # 28 88 /var/log/proftpd/xferlog { 29 89 daily 30 90 rotate 7 … … 40 100 endscript 41 101 } 42 102 103 # ProFTPd traffic rotation for ispCP traffic count 104 # 43 105 /var/log/proftpd/ftp_traff.log { 44 106 daily 45 107 rotate 7 … … 56 118 /usr/bin/killall -HUP rsyslogd 57 119 fi 58 120 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 # 1 32 /var/log/httpd/users/*.log { 2 33 weekly 3 34 missingok … … 15 46 endscript 16 47 } 17 48 49 # Rotation for user traffic prevs 50 # 18 51 /var/log/httpd/backup/*.log.perv { 19 52 size 5M 20 53 missingok … … 25 58 create 640 root adm 26 59 } 27 60 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 # 28 86 /var/log/xferlog { 29 87 daily 30 88 rotate 7 … … 40 98 endscript 41 99 } 42 100 101 # ProFTPd traffic rotation for ispCP traffic count 102 # 43 103 /var/log/ftp_traff.log { 44 104 daily 45 105 rotate 7 … … 50 110 /var/www/ispcp/engine/traffic/ispcp-vrl-traff &> /var/log/ispcp/ispcp-vrl-traff.log 51 111 endscript 52 112 postrotate 53 if [ -e /var/run/syslogd.pid ]; then113 if [ -e /var/run/syslogd.pid ]; then 54 114 /usr/bin/killall -HUP syslogd 55 115 elif [ -e /var/run/rsyslogd.pid ]; then 56 116 /usr/bin/killall -HUP rsyslogd 57 117 fi 58 118 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 # 1 32 /usr/local/www/logs/users/*.log { 2 33 weekly 3 34 missingok … … 15 46 endscript 16 47 } 17 48 49 # Rotation for user traffic prevs 50 # 18 51 /usr/local/www/logs/backup/*.log.perv { 19 52 size 5M 20 53 missingok … … 25 58 create 640 root adm 26 59 } 27 60 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 # 28 86 /var/log/proftpd/xferlog { 29 87 daily 30 88 rotate 7 … … 40 98 endscript 41 99 } 42 100 101 # ProFTPd traffic rotation for ispCP traffic count 102 # 43 103 /var/log/proftpd/ftp_traff.log { 44 104 daily 45 105 rotate 7 … … 56 116 /usr/bin/killall -HUP rsyslogd 57 117 fi 58 118 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 # 1 32 /var/log/apache2/users/*.log { 2 33 weekly 3 34 missingok … … 11 42 /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log 12 43 endscript 13 44 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 15 48 endscript 16 49 } 17 50 18 /var/log/apache2/backup/*.log.perv { 51 # Rotation for user traffic prevs 52 # 53 /var/log/apache2/backup/*.log.prev { 19 54 size 5M 20 55 missingok 21 56 rotate 5 … … 25 60 create 640 root adm 26 61 } 27 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 84 } 85 86 # Transfer rotation for ProFTPd 87 # 28 88 /var/log/proftpd/xferlog { 29 89 daily 30 90 rotate 7 … … 40 100 endscript 41 101 } 42 102 103 # ProFTPd traffic rotation for ispCP traffic count 104 # 43 105 /var/log/proftpd/ftp_traff.log { 44 106 daily 45 107 rotate 7 … … 56 118 /usr/bin/killall -HUP rsyslogd 57 119 fi 58 120 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 # 1 32 /var/log/apache2/users/*.log { 2 33 weekly 3 34 missingok … … 11 42 /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log 12 43 endscript 13 44 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 15 48 endscript 16 49 } 17 50 18 /var/log/apache2/backup/*.log.perv { 51 # Rotation for user traffic prevs 52 # 53 /var/log/apache2/backup/*.log.prev { 19 54 size 5M 20 55 missingok 21 56 rotate 5 … … 25 60 create 640 root adm 26 61 } 27 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 84 } 85 86 # Transfer rotation for ProFTPd 87 # 28 88 /var/log/proftpd/xferlog { 29 89 daily 30 90 rotate 7 … … 40 100 endscript 41 101 } 42 102 103 # ProFTPd traffic rotation for ispCP traffic count 104 # 43 105 /var/log/proftpd/ftp_traff.log { 44 106 daily 45 107 rotate 7 … … 56 118 /usr/bin/killall -HUP rsyslogd 57 119 fi 58 120 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 # 1 32 /var/log/apache2/users/*.log { 2 33 weekly 3 34 missingok … … 8 39 create 640 root root 9 40 sharedscripts 10 41 prerotate 11 /srv/www/ispcp/engine/traffic/ispcp-srv-traff &>/var/log/ispcp/ispcp-srv-traff.log42 /srv/www/ispcp/engine/traffic/ispcp-srv-traff-SUSE &>/var/log/ispcp/ispcp-srv-traff.log 12 43 endscript 13 44 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 15 48 endscript 16 49 } 17 50 18 /var/log/apache2/backup/*.log.perv { 51 # Rotation for user traffic prevs 52 # 53 /var/log/apache2/backup/*.log.prev { 19 54 size 5M 20 55 missingok 21 56 rotate 5 … … 25 60 create 640 root root 26 61 } 27 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 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 # 28 88 /var/log/proftpd/xferlog { 29 89 daily 30 90 rotate 7 … … 36 96 /usr/bin/killall -HUP syslog-ng 37 97 elif [ -e /var/run/rsyslogd.pid ]; then 38 98 /usr/bin/killall -HUP rsyslogd 39 fi99 fi 40 100 endscript 41 101 } 42 102 103 # ProFTPd traffic rotation for ispCP traffic count 104 # 43 105 /var/log/proftpd/ftp_traff.log { 44 106 daily 45 107 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 # 1 32 /var/log/apache2/users/*.log { 2 33 weekly 3 34 missingok … … 11 42 /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log 12 43 endscript 13 44 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 15 48 endscript 16 49 } 17 50 18 /var/log/apache2/backup/*.log.perv { 51 # Rotation for user traffic prevs 52 # 53 /var/log/apache2/backup/*.log.prev { 19 54 size 5M 20 55 missingok 21 56 rotate 5 22 57 compress 23 58 delaycompress 24 59 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 26 84 } 27 85 86 # Transfer rotation for ProFTPd 87 # 28 88 /var/log/proftpd/xferlog { 29 89 daily 30 90 rotate 7 … … 40 100 endscript 41 101 } 42 102 103 # ProFTPd traffic rotation for ispCP traffic count 104 # 43 105 /var/log/proftpd/ftp_traff.log { 44 106 daily 45 107 rotate 7 … … 56 118 /usr/bin/killall -HUP rsyslogd 57 119 fi 58 120 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 # 1 32 /var/log/apache2/users/*.log { 2 33 weekly 3 34 missingok … … 11 42 /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log 12 43 endscript 13 44 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 15 48 endscript 16 49 } 17 50 18 /var/log/apache2/backup/*.log.perv { 51 # Rotation for user traffic prevs 52 # 53 /var/log/apache2/backup/*.log.prev { 19 54 size 5M 20 55 missingok 21 56 rotate 5 … … 25 60 create 640 root adm 26 61 } 27 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 84 } 85 86 # Transfer rotation for ProFTPd 87 # 28 88 /var/log/proftpd/xferlog { 29 89 daily 30 90 rotate 7 … … 40 100 endscript 41 101 } 42 102 103 # ProFTPd traffic rotation for ispCP traffic count 104 # 43 105 /var/log/proftpd/ftp_traff.log { 44 106 daily 45 107 rotate 7 … … 56 118 /usr/bin/killall -HUP rsyslogd 57 119 fi 58 120 endscript 59 } 121 } 122 No newline at end of file
