Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: jf on December 10, 2002, 01:31:20 PM
-
Hello,
I host sites with EMS on an apache linux server, but I have a problem: each Sunday morning towards 4. 00, the sites are not accessible any more. I must restart the server each time. I’ve looked at the logs and in the log: repertory httpd/error.log.
There is the following line which appears at same hour before the server is down :
SIGHUP RECEIVED ATTEMPTING TO RESTART
This message says something to somebody ?
Which logs precisely have I to look at ?
Or does somebody know a script which would start again the server automatically Sunday morning?
Thank you for your help
-
you can use crontab -e and add:
0 0 * * 0 -exec service httpd restart graceful \;
or
0 0 * * 0 -exec /etc/e-smith/events/actions/restart-httpd-graceful \;
It will restart apache at 12PM every Sunday.
But you better check with the httpd-error log and access-log to find out the source. I have same problem due to some hackers activities.
-
Hello Welsh and jf,
Must you restart th hole server are can you also restart the apache server alone and is alone for the outside or also for the internal network?
When its only restarting the apache you can ad it a cron job like Welsh had written. A then don't rerstart the hole server.
But I think you would now why it's stop's, what Welsh all written he got's a hackers atack are a virus atack. I am intresting in what for atack You get and what you have done at it.
I hope to hear of these troubles
Goodlock
Johan