Changeset 1121
- Timestamp:
- 04/16/08 22:47:05
(6 months ago)
- Author:
- rats
- Message:
Fixed: Error in logrotation
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r1120 |
r1121 |
|
| 3 | 3 | |
|---|
| 4 | 4 | 2008-04-16 Benedikt Heintel |
|---|
| | 5 | - CONFIGS: |
|---|
| | 6 | * Fixed: Error in logrotation |
|---|
| 5 | 7 | - SETUP: |
|---|
| 6 | 8 | * Fixed #1189: Bug in ispcp-setup |
|---|
| r1068 |
r1121 |
|
| 1 | 1 | /var/log/apache2/users/*.log { |
|---|
| 2 | | weekly |
|---|
| 3 | | missingok |
|---|
| 4 | | rotate 52 |
|---|
| 5 | | compress |
|---|
| 6 | | delaycompress |
|---|
| 7 | | notifempty |
|---|
| 8 | | create 640 root adm |
|---|
| 9 | | sharedscripts |
|---|
| 10 | | prerotate |
|---|
| 11 | | /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log |
|---|
| 12 | | endscript |
|---|
| 13 | | postrotate |
|---|
| 14 | | for i in `seq 1 10`; do |
|---|
| 15 | | if [ -f /var/run/apache2.pid ]; then |
|---|
| 16 | | /etc/init.d/apache2 stop > /dev/null |
|---|
| 17 | | sleep 5 |
|---|
| 18 | | /etc/init.d/apache2 start > /dev/null |
|---|
| 19 | | fi |
|---|
| 20 | | done |
|---|
| 21 | | endscript |
|---|
| | 2 | weekly |
|---|
| | 3 | missingok |
|---|
| | 4 | rotate 52 |
|---|
| | 5 | compress |
|---|
| | 6 | delaycompress |
|---|
| | 7 | notifempty |
|---|
| | 8 | create 640 root adm |
|---|
| | 9 | sharedscripts |
|---|
| | 10 | prerotate |
|---|
| | 11 | /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log |
|---|
| | 12 | endscript |
|---|
| | 13 | postrotate |
|---|
| | 14 | for i in `seq 1 10`; do |
|---|
| | 15 | if [ -f /var/run/apache2.pid ]; then |
|---|
| | 16 | /etc/init.d/apache2 stop > /dev/null |
|---|
| | 17 | sleep 5 |
|---|
| | 18 | /etc/init.d/apache2 start > /dev/null |
|---|
| | 19 | fi |
|---|
| | 20 | done |
|---|
| | 21 | endscript |
|---|
| 22 | 22 | } |
|---|
| 23 | 23 | |
|---|
| 24 | 24 | /var/log/apache2/backup/*.log.perv { |
|---|
| 25 | | size 5M |
|---|
| 26 | | missingok |
|---|
| 27 | | rotate 5 |
|---|
| 28 | | compress |
|---|
| 29 | | delaycompress |
|---|
| 30 | | notifempty |
|---|
| 31 | | create 640 root adm |
|---|
| | 25 | size 5M |
|---|
| | 26 | missingok |
|---|
| | 27 | rotate 5 |
|---|
| | 28 | compress |
|---|
| | 29 | delaycompress |
|---|
| | 30 | notifempty |
|---|
| | 31 | create 640 root adm |
|---|
| 32 | 32 | } |
|---|
| 33 | 33 | |
|---|
| r1068 |
r1121 |
|
| 1 | 1 | /var/log/apache2/users/*.log { |
|---|
| 2 | | weekly |
|---|
| 3 | | missingok |
|---|
| 4 | | rotate 52 |
|---|
| 5 | | compress |
|---|
| 6 | | delaycompress |
|---|
| 7 | | notifempty |
|---|
| 8 | | create 640 root adm |
|---|
| 9 | | sharedscripts |
|---|
| 10 | | prerotate |
|---|
| 11 | | /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log |
|---|
| 12 | | endscript |
|---|
| 13 | | postrotate |
|---|
| 14 | | for i in `seq 1 10`; do |
|---|
| 15 | | if [ -f /var/run/apache2.pid ]; then |
|---|
| 16 | | /etc/init.d/apache2 stop > /dev/null |
|---|
| 17 | | sleep 5 |
|---|
| 18 | | /etc/init.d/apache2 start > /dev/null |
|---|
| 19 | | fi |
|---|
| 20 | | done |
|---|
| 21 | | endscript |
|---|
| | 2 | weekly |
|---|
| | 3 | missingok |
|---|
| | 4 | rotate 52 |
|---|
| | 5 | compress |
|---|
| | 6 | delaycompress |
|---|
| | 7 | notifempty |
|---|
| | 8 | create 640 root adm |
|---|
| | 9 | sharedscripts |
|---|
| | 10 | prerotate |
|---|
| | 11 | /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log |
|---|
| | 12 | endscript |
|---|
| | 13 | postrotate |
|---|
| | 14 | for i in `seq 1 10`; do |
|---|
| | 15 | if [ -f /var/run/apache2.pid ]; then |
|---|
| | 16 | /etc/init.d/apache2 stop > /dev/null |
|---|
| | 17 | sleep 5 |
|---|
| | 18 | /etc/init.d/apache2 start > /dev/null |
|---|
| | 19 | fi |
|---|
| | 20 | done |
|---|
| | 21 | endscript |
|---|
| 22 | 22 | } |
|---|
| 23 | 23 | |
|---|
| 24 | 24 | /var/log/apache2/backup/*.log.perv { |
|---|
| 25 | | size 5M |
|---|
| 26 | | missingok |
|---|
| 27 | | rotate 5 |
|---|
| 28 | | compress |
|---|
| 29 | | delaycompress |
|---|
| 30 | | notifempty |
|---|
| 31 | | create 640 root adm |
|---|
| | 25 | size 5M |
|---|
| | 26 | missingok |
|---|
| | 27 | rotate 5 |
|---|
| | 28 | compress |
|---|
| | 29 | delaycompress |
|---|
| | 30 | notifempty |
|---|
| | 31 | create 640 root adm |
|---|
| 32 | 32 | } |
|---|
| 33 | 33 | |
|---|
| r1068 |
r1121 |
|
| 1 | 1 | /var/log/httpd/users/*.log { |
|---|
| 2 | | weekly |
|---|
| 3 | | missingok |
|---|
| 4 | | rotate 52 |
|---|
| 5 | | compress |
|---|
| 6 | | delaycompress |
|---|
| 7 | | notifempty |
|---|
| 8 | | create 640 root adm |
|---|
| 9 | | sharedscripts |
|---|
| 10 | | prerotate |
|---|
| 11 | | /srv/www/ispcp/engine/traffic/ispcp-srv-traff &>/var/log/ispcp/ispcp-srv-traff.log |
|---|
| 12 | | endscript |
|---|
| 13 | | postrotate |
|---|
| 14 | | for i in `seq 1 10`; do |
|---|
| 15 | | if [ -f /var/run/httpd.pid ]; then |
|---|
| 16 | | /etc/init.d/httpd stop > /dev/null |
|---|
| 17 | | sleep 5 |
|---|
| 18 | | /etc/init.d/httpd start > /dev/null |
|---|
| 19 | | fi |
|---|
| 20 | | done |
|---|
| 21 | | endscript |
|---|
| | 2 | weekly |
|---|
| | 3 | missingok |
|---|
| | 4 | rotate 52 |
|---|
| | 5 | compress |
|---|
| | 6 | delaycompress |
|---|
| | 7 | notifempty |
|---|
| | 8 | create 640 root adm |
|---|
| | 9 | sharedscripts |
|---|
| | 10 | prerotate |
|---|
| | 11 | /srv/www/ispcp/engine/traffic/ispcp-srv-traff &>/var/log/ispcp/ispcp-srv-traff.log |
|---|
| | 12 | endscript |
|---|
| | 13 | postrotate |
|---|
| | 14 | for i in `seq 1 10`; do |
|---|
| | 15 | if [ -f /var/run/httpd.pid ]; then |
|---|
| | 16 | /etc/init.d/httpd stop > /dev/null |
|---|
| | 17 | sleep 5 |
|---|
| | 18 | /etc/init.d/httpd start > /dev/null |
|---|
| | 19 | fi |
|---|
| | 20 | done |
|---|
| | 21 | endscript |
|---|
| 22 | 22 | } |
|---|
| 23 | 23 | |
|---|
| 24 | 24 | /var/log/httpd/backup/*.log.perv { |
|---|
| 25 | | size 5M |
|---|
| 26 | | missingok |
|---|
| 27 | | rotate 5 |
|---|
| 28 | | compress |
|---|
| 29 | | delaycompress |
|---|
| 30 | | notifempty |
|---|
| 31 | | create 640 root adm |
|---|
| | 25 | size 5M |
|---|
| | 26 | missingok |
|---|
| | 27 | rotate 5 |
|---|
| | 28 | compress |
|---|
| | 29 | delaycompress |
|---|
| | 30 | notifempty |
|---|
| | 31 | create 640 root adm |
|---|
| 32 | 32 | } |
|---|
| 33 | 33 | |
|---|
| r1068 |
r1121 |
|
| 1 | 1 | /var/log/apache2/users/*.log { |
|---|
| 2 | | weekly |
|---|
| 3 | | missingok |
|---|
| 4 | | rotate 52 |
|---|
| 5 | | compress |
|---|
| 6 | | delaycompress |
|---|
| 7 | | notifempty |
|---|
| 8 | | create 640 root adm |
|---|
| 9 | | sharedscripts |
|---|
| 10 | | prerotate |
|---|
| 11 | | /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log |
|---|
| 12 | | endscript |
|---|
| 13 | | postrotate |
|---|
| 14 | | for i in `seq 1 10`; do |
|---|
| 15 | | if [ -f /var/run/apache2.pid ]; then |
|---|
| 16 | | /etc/init.d/apache2 stop > /dev/null |
|---|
| 17 | | sleep 5 |
|---|
| 18 | | /etc/init.d/apache2 start > /dev/null |
|---|
| 19 | | fi |
|---|
| 20 | | done |
|---|
| 21 | | endscript |
|---|
| | 2 | weekly |
|---|
| | 3 | missingok |
|---|
| | 4 | rotate 52 |
|---|
| | 5 | compress |
|---|
| | 6 | delaycompress |
|---|
| | 7 | notifempty |
|---|
| | 8 | create 640 root adm |
|---|
| | 9 | sharedscripts |
|---|
| | 10 | prerotate |
|---|
| | 11 | /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log |
|---|
| | 12 | endscript |
|---|
| | 13 | postrotate |
|---|
| | 14 | for i in `seq 1 10`; do |
|---|
| | 15 | if [ -f /var/run/apache2.pid ]; then |
|---|
| | 16 | /etc/init.d/apache2 stop > /dev/null |
|---|
| | 17 | sleep 5 |
|---|
| | 18 | /etc/init.d/apache2 start > /dev/null |
|---|
| | 19 | fi |
|---|
| | 20 | done |
|---|
| | 21 | endscript |
|---|
| 22 | 22 | } |
|---|
| 23 | 23 | |
|---|
| 24 | 24 | /var/log/apache2/backup/*.log.perv { |
|---|
| 25 | | size 5M |
|---|
| 26 | | missingok |
|---|
| 27 | | rotate 5 |
|---|
| 28 | | compress |
|---|
| 29 | | delaycompress |
|---|
| 30 | | notifempty |
|---|
| 31 | | create 640 root adm |
|---|
| | 25 | size 5M |
|---|
| | 26 | missingok |
|---|
| | 27 | rotate 5 |
|---|
| | 28 | compress |
|---|
| | 29 | delaycompress |
|---|
| | 30 | notifempty |
|---|
| | 31 | create 640 root adm |
|---|
| 32 | 32 | } |
|---|
| 33 | 33 | |
|---|
| r1068 |
r1121 |
|
| 1 | 1 | /var/log/apache2/users/*.log { |
|---|
| 2 | | weekly |
|---|
| 3 | | missingok |
|---|
| 4 | | rotate 52 |
|---|
| 5 | | compress |
|---|
| 6 | | delaycompress |
|---|
| 7 | | notifempty |
|---|
| 8 | | create 640 root adm |
|---|
| 9 | | sharedscripts |
|---|
| 10 | | prerotate |
|---|
| 11 | | /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log |
|---|
| 12 | | endscript |
|---|
| 13 | | postrotate |
|---|
| 14 | | for i in `seq 1 10`; do |
|---|
| 15 | | if [ -f /var/run/apache2.pid ]; then |
|---|
| 16 | | /etc/init.d/apache2 stop > /dev/null |
|---|
| 17 | | sleep 5 |
|---|
| 18 | | /etc/init.d/apache2 start > /dev/null |
|---|
| 19 | | fi |
|---|
| 20 | | done |
|---|
| 21 | | endscript |
|---|
| | 2 | weekly |
|---|
| | 3 | missingok |
|---|
| | 4 | rotate 52 |
|---|
| | 5 | compress |
|---|
| | 6 | delaycompress |
|---|
| | 7 | notifempty |
|---|
| | 8 | create 640 root adm |
|---|
| | 9 | sharedscripts |
|---|
| | 10 | prerotate |
|---|
| | 11 | /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log |
|---|
| | 12 | endscript |
|---|
| | 13 | postrotate |
|---|
| | 14 | for i in `seq 1 10`; do |
|---|
| | 15 | if [ -f /var/run/apache2.pid ]; then |
|---|
| | 16 | /etc/init.d/apache2 stop > /dev/null |
|---|
| | 17 | sleep 5 |
|---|
| | 18 | /etc/init.d/apache2 start > /dev/null |
|---|
| | 19 | fi |
|---|
| | 20 | done |
|---|
| | 21 | endscript |
|---|
| 22 | 22 | } |
|---|
| 23 | 23 | |
|---|
| 24 | 24 | /var/log/apache2/backup/*.log.perv { |
|---|
| 25 | | size 5M |
|---|
| 26 | | missingok |
|---|
| 27 | | rotate 5 |
|---|
| 28 | | compress |
|---|
| 29 | | delaycompress |
|---|
| 30 | | notifempty |
|---|
| 31 | | create 640 root adm |
|---|
| | 25 | size 5M |
|---|
| | 26 | missingok |
|---|
| | 27 | rotate 5 |
|---|
| | 28 | compress |
|---|
| | 29 | delaycompress |
|---|
| | 30 | notifempty |
|---|
| | 31 | create 640 root adm |
|---|
| 32 | 32 | } |
|---|
| 33 | 33 | |
|---|
| r1068 |
r1121 |
|
| 1 | 1 | /var/log/apache2/users/*.log { |
|---|
| 2 | | weekly |
|---|
| 3 | | missingok |
|---|
| 4 | | rotate 52 |
|---|
| 5 | | compress |
|---|
| 6 | | delaycompress |
|---|
| 7 | | notifempty |
|---|
| 8 | | create 640 root adm |
|---|
| 9 | | sharedscripts |
|---|
| 10 | | prerotate |
|---|
| 11 | | /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log |
|---|
| 12 | | endscript |
|---|
| 13 | | postrotate |
|---|
| 14 | | for i in `seq 1 10`; do |
|---|
| 15 | | if [ -f /var/run/apache2.pid ]; then |
|---|
| 16 | | /etc/init.d/apache2 stop > /dev/null |
|---|
| 17 | | sleep 5 |
|---|
| 18 | | /etc/init.d/apache2 start > /dev/null |
|---|
| 19 | | fi |
|---|
| 20 | | done |
|---|
| 21 | | endscript |
|---|
| | 2 | weekly |
|---|
| | 3 | missingok |
|---|
| | 4 | rotate 52 |
|---|
| | 5 | compress |
|---|
| | 6 | delaycompress |
|---|
| | 7 | notifempty |
|---|
| | 8 | create 640 root adm |
|---|
| | 9 | sharedscripts |
|---|
| | 10 | prerotate |
|---|
| | 11 | /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log |
|---|
| | 12 | endscript |
|---|
| | 13 | postrotate |
|---|
| | 14 | for i in `seq 1 10`; do |
|---|
| | 15 | if [ -f /var/run/apache2.pid ]; then |
|---|
| | 16 | /etc/init.d/apache2 stop > /dev/null |
|---|
| | 17 | sleep 5 |
|---|
| | 18 | /etc/init.d/apache2 start > /dev/null |
|---|
| | 19 | fi |
|---|
| | 20 | done |
|---|
| | 21 | endscript |
|---|
| 22 | 22 | } |
|---|
| 23 | 23 | |
|---|
| 24 | 24 | /var/log/apache2/backup/*.log.perv { |
|---|
| 25 | | size 5M |
|---|
| 26 | | missingok |
|---|
| 27 | | rotate 5 |
|---|
| 28 | | compress |
|---|
| 29 | | delaycompress |
|---|
| 30 | | notifempty |
|---|
| 31 | | create 640 root adm |
|---|
| | 25 | size 5M |
|---|
| | 26 | missingok |
|---|
| | 27 | rotate 5 |
|---|
| | 28 | compress |
|---|
| | 29 | delaycompress |
|---|
| | 30 | notifempty |
|---|
| | 31 | create 640 root adm |
|---|
| 32 | 32 | } |
|---|
| 33 | 33 | |
|---|
| r1068 |
r1121 |
|
| 1 | 1 | /var/log/apache2/users/*.log { |
|---|
| 2 | | weekly |
|---|
| 3 | | missingok |
|---|
| 4 | | rotate 52 |
|---|
| 5 | | compress |
|---|
| 6 | | delaycompress |
|---|
| 7 | | notifempty |
|---|
| 8 | | create 640 root adm |
|---|
| 9 | | sharedscripts |
|---|
| 10 | | prerotate |
|---|
| 11 | | /srv/www/ispcp/engine/traffic/ispcp-srv-traff &>/var/log/ispcp/ispcp-srv-traff.log |
|---|
| 12 | | endscript |
|---|
| 13 | | postrotate |
|---|
| 14 | | for i in `seq 1 10`; do |
|---|
| 15 | | if [ -f /var/run/httpd.pid ]; then |
|---|
| 16 | | /etc/init.d/apache2 stop > /dev/null |
|---|
| 17 | | sleep 5 |
|---|
| 18 | | /etc/init.d/apache2 start > /dev/null |
|---|
| 19 | | fi |
|---|
| 20 | | done |
|---|
| 21 | | endscript |
|---|
| | 2 | weekly |
|---|
| | 3 | missingok |
|---|
| | 4 | rotate 52 |
|---|
| | 5 | compress |
|---|
| | 6 | delaycompress |
|---|
| | 7 | notifempty |
|---|
| | 8 | create 640 root adm |
|---|
| | 9 | sharedscripts |
|---|
| | 10 | prerotate |
|---|
| | 11 | /srv/www/ispcp/engine/traffic/ispcp-srv-traff &>/var/log/ispcp/ispcp-srv-traff.log |
|---|
| | 12 | endscript |
|---|
| | 13 | postrotate |
|---|
| | 14 | for i in `seq 1 10`; do |
|---|
| | 15 | if [ -f /var/run/httpd.pid ]; then |
|---|
| | 16 | /etc/init.d/apache2 stop > /dev/null |
|---|
| | 17 | sleep 5 |
|---|
| | 18 | /etc/init.d/apache2 start > /dev/null |
|---|
| | 19 | fi |
|---|
| | 20 | done |
|---|
| | 21 | endscript |
|---|
| 22 | 22 | } |
|---|
| 23 | 23 | |
|---|
| 24 | 24 | /var/log/apache2/backup/*.log.perv { |
|---|
| 25 | | size 5M |
|---|
| 26 | | missingok |
|---|
| 27 | | rotate 5 |
|---|
| 28 | | compress |
|---|
| 29 | | delaycompress |
|---|
| 30 | | notifempty |
|---|
| 31 | | create 640 root adm |
|---|
| | 25 | size 5M |
|---|
| | 26 | missingok |
|---|
| | 27 | rotate 5 |
|---|
| | 28 | compress |
|---|
| | 29 | delaycompress |
|---|
| | 30 | notifempty |
|---|
| | 31 | create 640 root adm |
|---|
| 32 | 32 | } |
|---|
| 33 | 33 | |
|---|
| r1068 |
r1121 |
|
| 1 | 1 | /var/log/apache2/users/*.log { |
|---|
| 2 | | weekly |
|---|
| 3 | | missingok |
|---|
| 4 | | rotate 52 |
|---|
| 5 | | compress |
|---|
| 6 | | delaycompress |
|---|
| 7 | | notifempty |
|---|
| 8 | | create 640 root adm |
|---|
| 9 | | sharedscripts |
|---|
| 10 | | prerotate |
|---|
| 11 | | /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log |
|---|
| 12 | | endscript |
|---|
| 13 | | postrotate |
|---|
| 14 | | for i in `seq 1 10`; do |
|---|
| 15 | | if [ -f /var/run/apache2.pid ]; then |
|---|
| 16 | | /etc/init.d/apache2 stop > /dev/null |
|---|
| 17 | | sleep 5 |
|---|
| 18 | | /etc/init.d/apache2 start > /dev/null |
|---|
| 19 | | fi |
|---|
| 20 | | done |
|---|
| 21 | | endscript |
|---|
| | 2 | weekly |
|---|
| | 3 | missingok |
|---|
| | 4 | rotate 52 |
|---|
| | 5 | compress |
|---|
| | 6 | delaycompress |
|---|
| | 7 | notifempty |
|---|
| | 8 | create 640 root adm |
|---|
| | 9 | sharedscripts |
|---|
| | 10 | prerotate |
|---|
| | 11 | /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log |
|---|
| | 12 | endscript |
|---|
| | 13 | postrotate |
|---|
| | 14 | for i in `seq 1 10`; do |
|---|
| | 15 | if [ -f /var/run/apache2.pid ]; then |
|---|
| | 16 | /etc/init.d/apache2 stop > /dev/null |
|---|
| | 17 | sleep 5 |
|---|
| | 18 | /etc/init.d/apache2 start > /dev/null |
|---|
| | 19 | fi |
|---|
| | 20 | done |
|---|
| | 21 | endscript |
|---|
| 22 | 22 | } |
|---|
| 23 | 23 | |
|---|
| 24 | 24 | /var/log/apache2/backup/*.log.perv { |
|---|
| 25 | | size 5M |
|---|
| 26 | | missingok |
|---|
| 27 | | rotate 5 |
|---|
| 28 | | compress |
|---|
| 29 | | delaycompress |
|---|
| 30 | | notifempty |
|---|
| | 25 | size 5M |
|---|
| | 26 | missingok |
|---|
| | 27 | rotate 5 |
|---|
| | 28 | compress |
|---|
| | 29 | delaycompress |
|---|
| | 30 | notifempty |
|---|
| 31 | 31 | create 640 root adm |
|---|
| 32 | 32 | } |
|---|
| r1068 |
r1121 |
|
| 1 | 1 | /var/log/apache2/users/*.log { |
|---|
| 2 | | weekly |
|---|
| 3 | | missingok |
|---|
| 4 | | rotate 52 |
|---|
| 5 | | compress |
|---|
| 6 | | delaycompress |
|---|
| 7 | | notifempty |
|---|
| 8 | | create 640 root adm |
|---|
| 9 | | sharedscripts |
|---|
| 10 | | prerotate |
|---|
| 11 | | /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log |
|---|
| 12 | | endscript |
|---|
| 13 | | postrotate |
|---|
| 14 | | for i in `seq 1 10`; do |
|---|
| 15 | | if [ -f /var/run/apache2.pid ]; then |
|---|
| 16 | | /etc/init.d/apache2 stop > /dev/null |
|---|
| 17 | | sleep 5 |
|---|
| 18 | | /etc/init.d/apache2 start > /dev/null |
|---|
| 19 | | fi |
|---|
| 20 | | done |
|---|
| 21 | | endscript |
|---|
| | 2 | weekly |
|---|
| | 3 | missingok |
|---|
| | 4 | rotate 52 |
|---|
| | 5 | compress |
|---|
| | 6 | delaycompress |
|---|
| | 7 | notifempty |
|---|
| | 8 | create 640 root adm |
|---|
| | 9 | sharedscripts |
|---|
| | 10 | prerotate |
|---|
| | 11 | /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log |
|---|
| | 12 | endscript |
|---|
| | 13 | postrotate |
|---|
| | 14 | for i in `seq 1 10`; do |
|---|
| | 15 | if [ -f /var/run/apache2.pid ]; then |
|---|
| | 16 | /etc/init.d/apache2 stop > /dev/null |
|---|
| | 17 | sleep 5 |
|---|
| | 18 | /etc/init.d/apache2 start > /dev/null |
|---|
| | 19 | fi |
|---|
| | 20 | done |
|---|
| | 21 | endscript |
|---|
| 22 | 22 | } |
|---|
| 23 | 23 | |
|---|
| 24 | 24 | /var/log/apache2/backup/*.log.perv { |
|---|
| 25 | | size 5M |
|---|
| 26 | | missingok |
|---|
| 27 | | rotate 5 |
|---|
| 28 | | compress |
|---|
| 29 | | delaycompress |
|---|
| 30 | | notifempty |
|---|
| 31 | | create 640 root adm |
|---|
| | 25 | size 5M |
|---|
| | 26 | missingok |
|---|
| | 27 | rotate 5 |
|---|
| | 28 | compress |
|---|
| | 29 | delaycompress |
|---|
| | 30 | notifempty |
|---|
| | 31 | create 640 root adm |
|---|
| 32 | 32 | } |
|---|
| 33 | 33 | |
|---|
|
Download in other formats:
#########################################################################
# Site footer - Contents are automatically inserted after main Trac HTML
?>