We require a script to be written, that can kill an apache request based on the filename that it is accessing, and based on it's connection status in Apache.
I will explain it in terms of how WHM shows it to me, and then you will have to simply cross reference the numbers and send a kill -9 command. I am a developer myself, but know absolutely nothing about Perl or Linux :)
Through WHM, you can view the "Current CPU Usage", Which I believe could be a print out of the TOP Command, but I am not sure. This shows the PID, The Username, Mem Status, CPU Stats, and the command they are running. The command if it is an apache request usually looks something along the lines of this
/usr/bin/php /home/username/public_html/[url removed, login to view]
The script will need to find basically every command that is currently running, that has a substring of whatever I tell it. Let's say I want to run the script to kill all instances of apache, that is accessing the script "[url removed, login to view]", then it will need to take something like
/usr/bin/php /home/username/public_html/folder/[url removed, login to view]
And be able to recognize the substring within that. From there, it needs to grab the PID.
If possible, I would then like to cross reference that with the Apache Status grab out. In WHM we have the Apache Status page which tells me all current running Apache processes. Inside here it gives me a couple more pieces of information, and that is the status of the connection (Whether it is running, Closed, Gracefully closing etc). It also tells me how long the process has been running for.
So in short :
Find an apache process by the file it is accessing, check it's apache status, and how long it has been running, if it meets my criteria (As in it has been running for over 2 minutes), then send a kill - 9 command and kill the request.
If you have any questions I am more than happy to answer them :)
P.S. Don't be afraid to bid because you think someone will undercut you. I want good work, not the most hurried code ever :)
Bu iş için 18 freelancer ortalamada $59 teklif veriyor
Sir, I believe I can resolve this issue for you. Please see your PM for full details.
Greetings! We, at V I Services, have been delivering Remote IT infrastructure Management (RIM) Services successfully to clients across the globe. Our experienced Windows and Linux Support team members with the su Daha Fazla
I can provide you the script immediately. Please check PMB. Thank you.
I did that before and I can provide you with same day solution. Have almost 18 year experience and most of it with Unix.
I can do via Perl. I am ready for this project. I hope write little demo script and develop with you.
Hi, I'm very very interested this project and have question for you. Pls check your inbox. Thanks!
Hello, I have over 3+ years of experience developing on a Linux server with PHP, Ruby, and Apache. I've done a few Ruby scripts that keep checking the status of a process running on a Linux server. You won't need to Daha Fazla
I can do this for you, at very high quality. If you don't like it, you don't have to pay me. That's how sure I am.
I've worked with Unix and scripting for years (most jobs I've had since 1988) and I'd enjoy working on this you you.