Changeset 1348
- 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
| r1347 |
r1348 |
|
| 6 | 6 | * Mail_add.php display incorrect messages |
|---|
| 7 | 7 | * 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) |
|---|
| 8 | 10 | |
|---|
| 9 | 11 | 2008-09-09 Daniel Andreca |
|---|
| r1269 |
r1348 |
|
| 12 | 12 | endscript |
|---|
| 13 | 13 | postrotate |
|---|
| | 14 | /etc/init.d/httpd stop > /dev/null |
|---|
| 14 | 15 | for i in `seq 1 10`; do |
|---|
| 15 | 16 | if [ -f /var/run/httpd.pid ]; then |
|---|
| 16 | | /etc/init.d/httpd stop > /dev/null |
|---|
| 17 | 17 | sleep 5 |
|---|
| 18 | | /etc/init.d/httpd start > /dev/null |
|---|
| 19 | 18 | fi |
|---|
| 20 | 19 | done |
|---|
| | 20 | /etc/init.d/httpd start > /dev/null |
|---|
| 21 | 21 | endscript |
|---|
| 22 | 22 | } |
|---|
| r1121 |
r1348 |
|
| 12 | 12 | endscript |
|---|
| 13 | 13 | postrotate |
|---|
| | 14 | /etc/init.d/apache2 stop > /dev/null |
|---|
| 14 | 15 | for i in `seq 1 10`; do |
|---|
| 15 | 16 | if [ -f /var/run/apache2.pid ]; then |
|---|
| 16 | | /etc/init.d/apache2 stop > /dev/null |
|---|
| 17 | 17 | sleep 5 |
|---|
| 18 | | /etc/init.d/apache2 start > /dev/null |
|---|
| 19 | 18 | fi |
|---|
| 20 | 19 | done |
|---|
| | 20 | /etc/init.d/apache2 start > /dev/null |
|---|
| 21 | 21 | endscript |
|---|
| 22 | 22 | } |
|---|
| r1121 |
r1348 |
|
| 12 | 12 | endscript |
|---|
| 13 | 13 | postrotate |
|---|
| | 14 | /etc/init.d/httpd stop > /dev/null |
|---|
| 14 | 15 | for i in `seq 1 10`; do |
|---|
| 15 | 16 | if [ -f /var/run/httpd.pid ]; then |
|---|
| 16 | | /etc/init.d/httpd stop > /dev/null |
|---|
| 17 | 17 | sleep 5 |
|---|
| 18 | | /etc/init.d/httpd start > /dev/null |
|---|
| 19 | 18 | fi |
|---|
| 20 | 19 | done |
|---|
| | 20 | /etc/init.d/httpd start > /dev/null |
|---|
| 21 | 21 | endscript |
|---|
| 22 | 22 | } |
|---|
| r1121 |
r1348 |
|
| 12 | 12 | endscript |
|---|
| 13 | 13 | postrotate |
|---|
| | 14 | /etc/init.d/apache2 stop > /dev/null |
|---|
| 14 | 15 | for i in `seq 1 10`; do |
|---|
| 15 | 16 | if [ -f /var/run/apache2.pid ]; then |
|---|
| 16 | | /etc/init.d/apache2 stop > /dev/null |
|---|
| 17 | 17 | sleep 5 |
|---|
| 18 | | /etc/init.d/apache2 start > /dev/null |
|---|
| 19 | 18 | fi |
|---|
| 20 | 19 | done |
|---|
| | 20 | /etc/init.d/apache2 start > /dev/null |
|---|
| 21 | 21 | endscript |
|---|
| 22 | 22 | } |
|---|
| r1121 |
r1348 |
|
| 12 | 12 | endscript |
|---|
| 13 | 13 | postrotate |
|---|
| | 14 | /etc/init.d/apache2 stop > /dev/null |
|---|
| 14 | 15 | for i in `seq 1 10`; do |
|---|
| 15 | 16 | if [ -f /var/run/apache2.pid ]; then |
|---|
| 16 | | /etc/init.d/apache2 stop > /dev/null |
|---|
| 17 | 17 | sleep 5 |
|---|
| 18 | | /etc/init.d/apache2 start > /dev/null |
|---|
| 19 | 18 | fi |
|---|
| 20 | 19 | done |
|---|
| | 20 | /etc/init.d/apache2 start > /dev/null |
|---|
| 21 | 21 | endscript |
|---|
| 22 | 22 | } |
|---|
| r1121 |
r1348 |
|
| 12 | 12 | endscript |
|---|
| 13 | 13 | postrotate |
|---|
| | 14 | /etc/init.d/apache2 stop > /dev/null |
|---|
| 14 | 15 | for i in `seq 1 10`; do |
|---|
| 15 | 16 | if [ -f /var/run/apache2.pid ]; then |
|---|
| 16 | | /etc/init.d/apache2 stop > /dev/null |
|---|
| 17 | 17 | sleep 5 |
|---|
| 18 | | /etc/init.d/apache2 start > /dev/null |
|---|
| 19 | 18 | fi |
|---|
| 20 | 19 | done |
|---|
| | 20 | /etc/init.d/apache2 start > /dev/null |
|---|
| 21 | 21 | endscript |
|---|
| 22 | 22 | } |
|---|
| r1121 |
r1348 |
|
| 12 | 12 | endscript |
|---|
| 13 | 13 | postrotate |
|---|
| | 14 | /etc/init.d/apache2 stop > /dev/null |
|---|
| 14 | 15 | for i in `seq 1 10`; do |
|---|
| 15 | 16 | if [ -f /var/run/httpd.pid ]; then |
|---|
| 16 | | /etc/init.d/apache2 stop > /dev/null |
|---|
| 17 | 17 | sleep 5 |
|---|
| 18 | | /etc/init.d/apache2 start > /dev/null |
|---|
| 19 | 18 | fi |
|---|
| 20 | 19 | done |
|---|
| | 20 | /etc/init.d/apache2 start > /dev/null |
|---|
| 21 | 21 | endscript |
|---|
| 22 | 22 | } |
|---|
| r1121 |
r1348 |
|
| 12 | 12 | endscript |
|---|
| 13 | 13 | postrotate |
|---|
| | 14 | /etc/init.d/apache2 stop > /dev/null |
|---|
| 14 | 15 | for i in `seq 1 10`; do |
|---|
| 15 | 16 | if [ -f /var/run/apache2.pid ]; then |
|---|
| 16 | | /etc/init.d/apache2 stop > /dev/null |
|---|
| 17 | 17 | sleep 5 |
|---|
| 18 | | /etc/init.d/apache2 start > /dev/null |
|---|
| 19 | 18 | fi |
|---|
| 20 | 19 | done |
|---|
| | 20 | /etc/init.d/apache2 start > /dev/null |
|---|
| 21 | 21 | endscript |
|---|
| 22 | 22 | } |
|---|
| r1121 |
r1348 |
|
| 12 | 12 | endscript |
|---|
| 13 | 13 | postrotate |
|---|
| | 14 | /etc/init.d/apache2 stop > /dev/null |
|---|
| 14 | 15 | for i in `seq 1 10`; do |
|---|
| 15 | 16 | if [ -f /var/run/apache2.pid ]; then |
|---|
| 16 | | /etc/init.d/apache2 stop > /dev/null |
|---|
| 17 | 17 | sleep 5 |
|---|
| 18 | | /etc/init.d/apache2 start > /dev/null |
|---|
| 19 | 18 | fi |
|---|
| 20 | 19 | done |
|---|
| | 20 | /etc/init.d/apache2 start > /dev/null |
|---|
| 21 | 21 | endscript |
|---|
| 22 | 22 | } |
|---|
|
Download in other formats:
#########################################################################
# Site footer - Contents are automatically inserted after main Trac HTML
?>