Cron job not restarting Apache

Cron job not restarting Apache

Post by compute8.. » Thu, 14 Sep 2000 04:00:00



I have two servers both using Redhat 6.1 and
Apache 1.3.12. The Httpd.conf file is the same.
When I execute the following command "kill -1
`cat /usr/lib/apache/logs/httpd.pid`" in a cron
job Apache restarts in one and not the other. Any
ideas why?

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Cron job not restarting Apache

Post by compute8.. » Thu, 14 Sep 2000 04:00:00


I have two servers both using Redhat 6.1 and Apache 1.3.12. The
Httpd.conf file is the same. When I try to execute the following
command "kill -1 `cat /usr/lib/apache/logs/httpd.pid`" in a cron job,
Apache restarts in one and not the other.

The one that doesn't restart shows warnings saying child process XXX
did not exit, sending another SIGHUP.  Then it tries again and the
warning child process XXX still did not exit, sending a SIGTERM is
given.  It then attempts to restart and I get a list of modules with
the error message cannot remove module xxxx: not found in module list.

Any ideas how to get this second server to work properly?

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Cron job not restarting Apache

Post by David Efflan » Thu, 14 Sep 2000 04:00:00




Quote:>I have two servers both using Redhat 6.1 and Apache 1.3.12. The
>Httpd.conf file is the same. When I try to execute the following
>command "kill -1 `cat /usr/lib/apache/logs/httpd.pid`" in a cron job,
>Apache restarts in one and not the other.

>The one that doesn't restart shows warnings saying child process XXX
>did not exit, sending another SIGHUP.  Then it tries again and the
>warning child process XXX still did not exit, sending a SIGTERM is
>given.  It then attempts to restart and I get a list of modules with
>the error message cannot remove module xxxx: not found in module list.

>Any ideas how to get this second server to work properly?

Have you tried:  killall -HUP httpd
This should make any httpd processes reread the conf file(s).

--

http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://hammer.prohosting.com/~cgi-wiz/  http://cgi-help.virtualave.net/

 
 
 

Cron job not restarting Apache

Post by compute8.. » Sat, 16 Sep 2000 04:00:00






> >I have two servers both using Redhat 6.1 and Apache 1.3.12. The
> >Httpd.conf file is the same. When I try to execute the following
> >command "kill -1 `cat /usr/lib/apache/logs/httpd.pid`" in a cron job,
> >Apache restarts in one and not the other.

> >The one that doesn't restart shows warnings saying child process XXX
> >did not exit, sending another SIGHUP.  Then it tries again and the
> >warning child process XXX still did not exit, sending a SIGTERM is
> >given.  It then attempts to restart and I get a list of modules with
> >the error message cannot remove module xxxx: not found in module
list.

> >Any ideas how to get this second server to work properly?

> Have you tried:  killall -HUP httpd
> This should make any httpd processes reread the conf file(s).

> --

> http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
> http://hammer.prohosting.com/~cgi-wiz/  http://cgi-

help.virtualave.net/
Quote:

> I tried the killall -HUP httpd command and it didn't work either.  On

the server where the kill command works the killall command works
fine.  On the server were the kill command doesn't work the killall
command doesn't work.

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

1. automaticall restart an executable (run as cron job) after the machine is down and then up

I wrote a c program in solaris 2.7 sun E450 system. A script runs as a cron
job at a specified time every day. One day, the E450 was down before the
running time scheduled for the cronjob, and was up after the scheduled time.
In this case, my c program missed one execution. My plan is: the c program
will get executed exactly one time a day even the the system is down at the
scheduled running time, i.e., the c program will be executed as long as the
system is up at that day. Does anyone know how to do this?

Thanks

Sent via Deja.com http://www.deja.com/
Before you buy.

2. Any Linux ISPs?

3. HTTPD does not live long under CRON restart

4. Sun Sparc 20 disk partition/fs disaster

5. Difference between cron job and real time job

6. SATAN not responding?

7. Cron jobs not running?

8. Memory corruption in mmap whe accessing more than 4K (Page Size)

9. Help!!! cron jobs are not running

10. Cron jobs not working..

11. cron did not run root jobs (solaris 2.5.1)

12. cron running jobs not in crontab

13. **cron jobs do not alwats run