[Twisted-Python] What's the standard way to catch signals in twisted?

Feb. 24, 2005
1:29 p.m.
For example, I want to add some specific handlers SIGHUP, SIGINT in addition to what twistd have. How to? Thanks! Yun

February 2005
2:20 p.m.
On Thu, 2005-02-24 at 13:29 -0500, Yun Mao wrote:
For example, I want to add some specific handlers SIGHUP, SIGINT in addition to what twistd have. How to?
Do you really want signal handlers, or do you want to do stuff on shutdown? If you want to do stuff on shutdown, just add code in your service's stopService.

February 2005
2:20 p.m.
On Thu, 2005-02-24 at 13:29 -0500, Yun Mao wrote:
For example, I want to add some specific handlers SIGHUP, SIGINT in addition to what twistd have. How to?
Do you really want signal handlers, or do you want to do stuff on shutdown? If you want to do stuff on shutdown, just add code in your service's stopService.
7323
Age (days ago)
7323
Last active (days ago)
3 comments
2 participants
participants (2)
-
Itamar Shtull-Trauring
-
Yun Mao