Changeset 1121

Show
Ignore:
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
  • trunk/CHANGELOG

    r1120 r1121  
    33 
    442008-04-16 Benedikt Heintel 
     5        - CONFIGS: 
     6                * Fixed: Error in logrotation 
    57        - SETUP: 
    68                * Fixed #1189: Bug in ispcp-setup 
  • trunk/configs/centos/logrotate/ispcp

    r1068 r1121  
    11/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 
    2222} 
    2323 
    2424/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 
    3232} 
    3333 
  • trunk/configs/debian/logrotate/ispcp

    r1068 r1121  
    11/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 
    2222} 
    2323 
    2424/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 
    3232} 
    3333 
  • trunk/configs/fedora/logrotate/ispcp

    r1068 r1121  
    11/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 
    2222} 
    2323 
    2424/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 
    3232} 
    3333 
  • trunk/configs/freebsd/logrotate/ispcp

    r1068 r1121  
    11/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 
    2222} 
    2323 
    2424/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 
    3232} 
    3333 
  • trunk/configs/gentoo/logrotate/ispcp

    r1068 r1121  
    11/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 
    2222} 
    2323 
    2424/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 
    3232} 
    3333 
  • trunk/configs/openbsd/logrotate/ispcp

    r1068 r1121  
    11/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 
    2222} 
    2323 
    2424/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 
    3232} 
    3333 
  • trunk/configs/opensuse/logrotate/ispcp

    r1068 r1121  
    11/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 
    2222} 
    2323 
    2424/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 
    3232} 
    3333 
  • trunk/configs/redhat/logrotate/ispcp

    r1068 r1121  
    11/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 
    2222} 
    2323 
    2424/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 
    3131        create 640 root adm 
    3232} 
  • trunk/configs/ubuntu/logrotate/ispcp

    r1068 r1121  
    11/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 
    2222} 
    2323 
    2424/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 
    3232} 
    3333