Results 1 to 5 of 5
Hi !
Could anybody help me to find decision in my training task.
Situation: you have a poorly written web service, which stops responding
from time to time. Moreover, we ...
- 08-14-2010 #1Just Joined!
- Join Date
- Aug 2010
- Posts
- 3
Restarter script
Hi !
Could anybody help me to find decision in my training task.
Situation: you have a poorly written web service, which stops responding
from time to time. Moreover, we know, that if server has >N tcp sessions
open, the service becomes unresponsive.
Please write a restarter script, which
1) restarts web service, if page is unretrievable in M seconds
2) restarts web service, if service has >N incoming tcp sessions open
I use Debian.
Alex
- 08-14-2010 #2
ad 1: Not sure how to determine "hang". Maybe the server spawns child threads for each request, which then could be checked for uptime.
ad 2: You can list open connections with the netstat command.Debian GNU/Linux -- You know you want it.
- 08-15-2010 #3Just Joined!
- Join Date
- Aug 2010
- Posts
- 3
Fragment of script
Thank you.
But, may be some fragment of script.
Alex
- 08-15-2010 #4
lol, forget it, pal.

It's your training task...Debian GNU/Linux -- You know you want it.
- 08-15-2010 #5Just Joined!
- Join Date
- Aug 2010
- Posts
- 3
Hint
May be any hint ? I need the script by Monday


Reply With Quote
