I was starting to go through withdrawals, when HF goes down its almost as bad as trying to quit smoking.
[Downtime] Apache Crashed |
(Oct 30, 2010 11:36 AM)Stringer Wrote: No, he just said that for fun.No need to call me an idiot was just wondering.
I've finally taken the time to make a simple bash script to check if Apache is locked up and restart. It's been something I've been meaning to do for a while. It checks every 15 minutes and if it's locked then apache will restart. Of course this won't actually stop an attack but if the attack is over or my firewall catches enough of the IPs we should come back online. Example is todays attack with my script we probably would have had less than an hour of downtime and I wouldn't have had to do anything.
I'll watch this to see how it goes. My script should work as I want it. If it does then maybe I'll run it every 10 minutes which I think is fine. There can always be adjustments and optimizations. (Oct 30, 2010 12:07 PM)Omniscient Wrote: I've finally taken the time to make a simple bash script to check if Apache is locked up and restart. It's been something I've been meaning to do for a while. It checks every 15 minutes and if it's locked then apache will restart. Of course this won't actually stop an attack but if the attack is over or my firewall catches enough of the IPs we should come back online. Example is todays attack with my script we probably would have had less than an hour of downtime and I wouldn't have had to do anything. Nice one, Omni! So this means no more real long downtime? Awesome. Feel free to PM me if you need any help.
(Oct 30, 2010 12:07 PM)Omniscient Wrote: I've finally taken the time to make a simple bash script to check if Apache is locked up and restart. It's been something I've been meaning to do for a while. It checks every 15 minutes and if it's locked then apache will restart. Of course this won't actually stop an attack but if the attack is over or my firewall catches enough of the IPs we should come back online. Example is todays attack with my script we probably would have had less than an hour of downtime and I wouldn't have had to do anything. Yay for reduced downtime. Just i have to read the announcements more before making the first thread in the lounge again >.<!
Thanks for fixing it. I woke up went to HF (always the first thing I do) and saw I had an unread PM. Clicked it then everything stopped. I was like "WTF"
(Oct 30, 2010 12:07 PM)Omniscient Wrote: I've finally taken the time to make a simple bash script to check if Apache is locked up and restart. It's been something I've been meaning to do for a while. It checks every 15 minutes and if it's locked then apache will restart. Of course this won't actually stop an attack but if the attack is over or my firewall catches enough of the IPs we should come back online. Example is todays attack with my script we probably would have had less than an hour of downtime and I wouldn't have had to do anything. That's great Omni. ✌
Oct 30, 2010 12:12 PM
(This post was last modified: Oct 30, 2010 12:12 PM by CrystuL.)
Thank you for fixing this Omni, I was wondering had went wrong. But, everything is better now :).
![]()
Omni sleeps late - 20 thousand people are bored.
Great Business Managed Hosting at Veerotech
|
|
|





![[Image: OFTq1GL.gif]](https://i.imgur.com/OFTq1GL.gif)
