Apache graceful restart not working

worldservants

New member
Joined
Jul 3, 2014
Messages
1
Hi guys,

We have a long running PHP process that has to continue during the night. However, because of the Apache log rotate, the connection is broken at midnight, stopping the execution of the script.

After some research (http://forum.directadmin.com/showthread.php?t=32594), I found that Apache was not restarted gracefully, so I added the line graceful_restarts=1 to directadmin.conf, but this doesn't seem te work. The execution of the scripts is still stopped.

Do you have any idea how to get graceful restarts working? Or is there another way for the PHP process to remain active during an Apache restart?

Thanks in advance!
 
First question for you: How do you run PHP on your server? Do you use mod_php? Or something else?

Are you sure that a graceful restarts will allow php to keep running? Are you sure that graceful restarts will allow logs to be rotated? If so, then we can report this as a possible bug.

Otherwise we need to find out, as we certainly need to restart logs.

Can you have your php script run some other way, possibly using command-line php?

Jeff
 
Back
Top