sbp / phenny

Python IRC bot
http://inamidst.com/phenny/
380 stars 233 forks source link

Handle receiving SIGTERM. #12

Open rmoore opened 12 years ago

rmoore commented 12 years ago

Make phenny kill its child threads then exit when it receives a SIGTERM signal.

I needed to be able to have start-stop-daemon be able to kill phenny using a pidfile in order to write an initscript for my server. This will allow services to send SIGTERM signals to the parent phenny thread and phenny will take care of ending itself.

dustinlacewell commented 11 years ago

the shit. merge this.

nomicode commented 11 years ago

nomicode commented 11 years ago

nomicode commented 11 years ago

nomicode commented 11 years ago

nomicode commented 11 years ago

nomicode commented 11 years ago

nomicode commented 11 years ago

nomicode commented 11 years ago

nomicode commented 11 years ago

nomicode commented 11 years ago

nomicode commented 11 years ago

dpk commented 11 years ago

cmcosm

dustinlacewell commented 11 years ago

I died for like 10 straight minutes.

tsani commented 11 years ago

Clearly, it wasn't merged due to the typo in the title. That is seriously the only possible justification for this silliness.