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

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

25 Feb
25 Feb
12:50 a.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.
6604
Age (days ago)
6604
Last active (days ago)
3 comments
2 participants
participants (2)
-
Itamar Shtull-Trauring
-
Yun Mao