mooxe
19-06-2006, 04:13
I find this command very usefull, especially after the server crashes due to flooders. A normal stop|start will not raise the server after one of those crashes. (I am running RH7.2.) Assuming you have a separate account that runs TS2 exclusively like I do this command will work no problem. 1st the command kills all jobs from the specified user, and 2nd it deleted the PID file. You are now clear to restart the server.
kill -9 `ps -u <username>|grep [0-9]|awk '{print $1}'` | rm -f /home/tss3/tss2_rc2/tsserver2.pid
What I was doing in the past was killing off each job 1 by 1 after a flood crash. If anyone knows how to add a start command under a different username to this command please share it.
Combine this command with a Webmin account (for custom commands) for the TS SA, and the SA will have full rights to raise the server from the dead with no interaction from the host for those hard crashes.
kill -9 `ps -u <username>|grep [0-9]|awk '{print $1}'` | rm -f /home/tss3/tss2_rc2/tsserver2.pid
What I was doing in the past was killing off each job 1 by 1 after a flood crash. If anyone knows how to add a start command under a different username to this command please share it.
Combine this command with a Webmin account (for custom commands) for the TS SA, and the SA will have full rights to raise the server from the dead with no interaction from the host for those hard crashes.