Is it possible to shutdown apache for atleast 15 minutes?

darkus

Verified User
Joined
Dec 15, 2005
Messages
114
Im trying to write a backup script for my server which I need to shut down apache for about 15 minutes to keep load low while I do the backup.

I can successfully have apache shutdown using 'service httpd stop'. The problem is that directadmin after 30 seconds will automatically restart apache, even though I need it to stay off while I perform the backup.

Is there any kind of work around for this? Thanks!
 
It's not quite 30 seconds. DirectAdmin checks every minute approximately on the minute, and restarts it if it's not running.

You need to change the line
Code:
httpd=ON
in the /usr/local/directadmin/data/admin/services.status file to:
Code:
httpd=OFF
before stopping apache, and then switch it back before restarting apache. Or just switch it back and let DirectAdmin restart it the next time it runs the every-minute cronjob.

Jeff
 
Back
Top