
Nov. 14, 2008
3:44 p.m.
On Fri, 14 Nov 2008 17:06:31 +1100 Tim Allen <screwtape@froup.com> wrote:
On Fri, Nov 14, 2008 at 01:49:04PM +0800, Peter Cai wrote:
How can I stop it? I've read through twistd manual and didn't find anything about this.
I have to find the process and kill it.
I believe the standard method of stopping a background twistd is:
kill $(cat twistd.pid)
I can suggest using "pkill -F twistd.pid" as a cleaner alternative. You can also define your own handlers for received signals (via signal module), to implement some custom shutdown sequence, for instance. -- Mike Kazantsev // fraggod.net