python-zulip-api/bots
Jacob Hurwitz 9ebfa84385 zmirror: Allow duplicate zmirror processes to die gracefully.
Fixes #602.

I replaced the SIGKILL with a SIGINT, and then catch SIGINT with a
handler.  This handler calls cancelSubs if necessary, and can later be
edited to perform other clean-up operations, too. I thought about, in
this same commit, changing the SIGTERM in
maybe_restart_mirroring_script to a SIGINT, but after tracing out the
code paths, I realized that isn't necessary. (The SIGTERM is
necessarily performed on a process that has not subscribed to any
zephyr classes, so cancelSubs is unnecessary. If we do think that we
may want to add additional clean-up operations in the future, though,
then it might be worth investigating changing this SIGTERM.)

(imported from commit 692b295be6cb40b0e4ec2ca0bc58c58056ed9bd9)
2013-02-05 14:27:55 -05:00
..
__init__.py Move files around in the API. 2013-02-01 15:52:28 -05:00
check-mirroring Move files around in the API. 2013-02-01 15:52:28 -05:00
check_send_receive.py Move files around in the API. 2013-02-01 15:52:28 -05:00
feedback-bot Move files around in the API. 2013-02-01 15:52:28 -05:00
gcal-bot Move files around in the API. 2013-02-01 15:52:28 -05:00
humbug_trac.py Move files around in the API. 2013-02-01 15:52:28 -05:00
send-nagios-notification Move files around in the API. 2013-02-01 15:52:28 -05:00
sync-public-streams Add script to sync public streams. 2013-02-05 14:27:55 -05:00
tddium-notify-humbug Move files around in the API. 2013-02-01 15:52:28 -05:00
twitter-bot.py Move files around in the API. 2013-02-01 15:52:28 -05:00
zephyr-mirror-crontab Move files around in the API. 2013-02-01 15:52:28 -05:00
zephyr_mirror.py zmirror: Allow duplicate zmirror processes to die gracefully. 2013-02-05 14:27:55 -05:00
zephyr_mirror_backend.py zmirror: Allow duplicate zmirror processes to die gracefully. 2013-02-05 14:27:55 -05:00