Changeset 1348

Show
Ignore:
Timestamp:
09/10/08 22:18:14 (3 months ago)
Author:
scitech
Message:

logrotate/ispcp restart apache 10 times

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGELOG

    r1347 r1348  
    66                * Mail_add.php display incorrect messages 
    77                * Fixed #1530: Inconsistency between current_ftp_cnt and actual ftp count: -9 != 1 
     8        - CONFIGS: 
     9                * logrotate/ispcp restart apache 10 times (http://www.isp-control.net/forum/apache-just-stopped-o-t-3747-2.html#pid35737) 
    810 
    9112008-09-09 Daniel Andreca 
  • trunk/configs/centos/logrotate/ispcp

    r1269 r1348  
    1212  endscript 
    1313  postrotate 
     14  /etc/init.d/httpd stop > /dev/null 
    1415  for i in `seq 1 10`; do 
    1516    if [ -f /var/run/httpd.pid ]; then 
    16       /etc/init.d/httpd stop > /dev/null 
    1717      sleep 5 
    18       /etc/init.d/httpd start > /dev/null 
    1918    fi 
    2019  done 
     20  /etc/init.d/httpd start > /dev/null 
    2121  endscript 
    2222} 
  • trunk/configs/debian/logrotate/ispcp

    r1121 r1348  
    1212  endscript 
    1313  postrotate 
     14  /etc/init.d/apache2 stop > /dev/null 
    1415  for i in `seq 1 10`; do 
    1516    if [ -f /var/run/apache2.pid ]; then 
    16       /etc/init.d/apache2 stop > /dev/null 
    1717      sleep 5 
    18       /etc/init.d/apache2 start > /dev/null 
    1918    fi 
    2019  done 
     20  /etc/init.d/apache2 start > /dev/null 
    2121  endscript 
    2222} 
  • trunk/configs/fedora/logrotate/ispcp

    r1121 r1348  
    1212  endscript 
    1313  postrotate 
     14  /etc/init.d/httpd stop > /dev/null 
    1415  for i in `seq 1 10`; do 
    1516    if [ -f /var/run/httpd.pid ]; then 
    16       /etc/init.d/httpd stop > /dev/null 
    1717      sleep 5 
    18       /etc/init.d/httpd start > /dev/null 
    1918    fi 
    2019  done 
     20  /etc/init.d/httpd start > /dev/null 
    2121  endscript 
    2222} 
  • trunk/configs/freebsd/logrotate/ispcp

    r1121 r1348  
    1212  endscript 
    1313  postrotate 
     14  /etc/init.d/apache2 stop > /dev/null 
    1415  for i in `seq 1 10`; do 
    1516    if [ -f /var/run/apache2.pid ]; then 
    16       /etc/init.d/apache2 stop > /dev/null 
    1717      sleep 5 
    18       /etc/init.d/apache2 start > /dev/null 
    1918    fi 
    2019  done 
     20  /etc/init.d/apache2 start > /dev/null 
    2121  endscript 
    2222} 
  • trunk/configs/gentoo/logrotate/ispcp

    r1121 r1348  
    1212  endscript 
    1313  postrotate 
     14  /etc/init.d/apache2 stop > /dev/null 
    1415  for i in `seq 1 10`; do 
    1516    if [ -f /var/run/apache2.pid ]; then 
    16       /etc/init.d/apache2 stop > /dev/null 
    1717      sleep 5 
    18       /etc/init.d/apache2 start > /dev/null 
    1918    fi 
    2019  done 
     20  /etc/init.d/apache2 start > /dev/null 
    2121  endscript 
    2222} 
  • trunk/configs/openbsd/logrotate/ispcp

    r1121 r1348  
    1212  endscript 
    1313  postrotate 
     14  /etc/init.d/apache2 stop > /dev/null 
    1415  for i in `seq 1 10`; do 
    1516    if [ -f /var/run/apache2.pid ]; then 
    16       /etc/init.d/apache2 stop > /dev/null 
    1717      sleep 5 
    18       /etc/init.d/apache2 start > /dev/null 
    1918    fi 
    2019  done 
     20  /etc/init.d/apache2 start > /dev/null 
    2121  endscript 
    2222} 
  • trunk/configs/opensuse/logrotate/ispcp

    r1121 r1348  
    1212  endscript 
    1313  postrotate 
     14  /etc/init.d/apache2 stop > /dev/null 
    1415  for i in `seq 1 10`; do 
    1516    if [ -f /var/run/httpd.pid ]; then 
    16       /etc/init.d/apache2 stop > /dev/null 
    1717      sleep 5 
    18       /etc/init.d/apache2 start > /dev/null 
    1918    fi 
    2019  done 
     20  /etc/init.d/apache2 start > /dev/null 
    2121  endscript 
    2222} 
  • trunk/configs/redhat/logrotate/ispcp

    r1121 r1348  
    1212  endscript 
    1313  postrotate 
     14  /etc/init.d/apache2 stop > /dev/null 
    1415  for i in `seq 1 10`; do 
    1516    if [ -f /var/run/apache2.pid ]; then 
    16       /etc/init.d/apache2 stop > /dev/null 
    1717      sleep 5 
    18       /etc/init.d/apache2 start > /dev/null 
    1918    fi 
    2019  done 
     20  /etc/init.d/apache2 start > /dev/null 
    2121  endscript 
    2222} 
  • trunk/configs/ubuntu/logrotate/ispcp

    r1121 r1348  
    1212  endscript 
    1313  postrotate 
     14  /etc/init.d/apache2 stop > /dev/null 
    1415  for i in `seq 1 10`; do 
    1516    if [ -f /var/run/apache2.pid ]; then 
    16       /etc/init.d/apache2 stop > /dev/null 
    1717      sleep 5 
    18       /etc/init.d/apache2 start > /dev/null 
    1918    fi 
    2019  done 
     20  /etc/init.d/apache2 start > /dev/null 
    2121  endscript 
    2222}