Changeset 2580 for trunk/configs/opensuse/logrotate/ispcp
- Timestamp:
- 02/06/10 22:58:48 (2 years ago)
- File:
-
- 1 edited
-
trunk/configs/opensuse/logrotate/ispcp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/configs/opensuse/logrotate/ispcp
r1944 r2580 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 … … 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 … … 26 61 } 27 62 63 # Transfer rotation for ProFTPd 64 # 28 65 /var/log/proftpd/xferlog { 29 66 daily … … 33 70 delaycompress 34 71 postrotate 35 if [ -e /var/run/syslog-n d.pid ]; then72 if [ -e /var/run/syslog-ng.pid ]; then 36 73 /usr/bin/killall -HUP syslog-ng 37 74 elif [ -e /var/run/rsyslogd.pid ]; then 38 75 /usr/bin/killall -HUP rsyslogd 39 fi76 fi 40 77 endscript 41 78 } 42 79 80 # ProFTPd traffic rotation for ispCP traffic count 81 # 43 82 /var/log/proftpd/ftp_traff.log { 44 83 daily … … 51 90 endscript 52 91 postrotate 53 if [ -e /var/run/syslog-n d.pid ]; then92 if [ -e /var/run/syslog-ng.pid ]; then 54 93 /usr/bin/killall -HUP syslog-ng 55 94 elif [ -e /var/run/rsyslogd.pid ]; then
Note: See TracChangeset
for help on using the changeset viewer.
