Re: [Twisted-Python] stopping a twistd daemon: SIGTERM or SIGKILL

2012-07-25 Thread Itamar Turner-Trauring
On Tue, Jul 24, 2012 at 11:18 PM, Tom Sheffler wrote: > Hi Twisted Folks, > > We use monit to start and stop our twistd daemons. I have set up monit to > restart some of the daemons when they grow too large. I use the following > command: > > /bin/bash -c 'kill -s SIGTERM `cat /var/run/sensr

Re: [Twisted-Python] stopping a twistd daemon: SIGTERM or SIGKILL

2012-07-24 Thread Justin Venus
I experienced a similar issue with a rather large twisted daemon. I ended up installing my own signal handler and issued a triggerSystemEvent to stop the twisted services. I can point you towards my code if you want to pursue that route. Justin Venus On Jul 24, 2012 10:21 PM, "Tom Sheffler" wro

[Twisted-Python] stopping a twistd daemon: SIGTERM or SIGKILL

2012-07-24 Thread Tom Sheffler
Hi Twisted Folks, We use monit to start and stop our twistd daemons. I have set up monit to restart some of the daemons when they grow too large. I use the following command: /bin/bash -c 'kill -s SIGTERM `cat /var/run/sensrtunw/sensrtunw.pid`' Occasionally, this is unsuccessful in killing