zephyr_mirror: Ignore expired Kerberos tickets for personals mirror.

(imported from commit 094755feacd299255f078432465f11a609df9aef)
This commit is contained in:
Tim Abbott 2013-08-26 14:50:30 -04:00
parent 9223f6b2e8
commit 2249b18081
2 changed files with 6 additions and 1 deletions

View file

@ -680,6 +680,8 @@ returned the following warning:
# just notify the user that they need to renew their tickets # just notify the user that they need to renew their tickets
(code, stderr) = send_unauthed_zephyr(zwrite_args, wrapped_content) (code, stderr) = send_unauthed_zephyr(zwrite_args, wrapped_content)
if code == 0: if code == 0:
if options.ignore_expired_tickets:
return
return send_error_zulip("""%s return send_error_zulip("""%s
Your last message was forwarded from Zulip to Zephyr unauthenticated, \ Your last message was forwarded from Zulip to Zephyr unauthenticated, \
@ -941,6 +943,9 @@ def parse_args():
parser.add_option('--sync-subscriptions', parser.add_option('--sync-subscriptions',
default=False, default=False,
action='store_true') action='store_true')
parser.add_option('--ignore-expired-tickets',
default=False,
action='store_true')
parser.add_option('--site', parser.add_option('--site',
default=DEFAULT_SITE, default=DEFAULT_SITE,
help=optparse.SUPPRESS_HELP) help=optparse.SUPPRESS_HELP)

View file

@ -1,5 +1,5 @@
[program:zmirror-USERNAME] [program:zmirror-USERNAME]
command=python /home/humbug/humbug/bots/zephyr_mirror_backend.py --root-path=/home/humbug/humbug/bots --user=USERNAME --enable-log=/home/humbug/logs/mirror-log-%(program_name)s --use-sessions --session-path=/home/humbug/zephyr_sessions/%(program_name)s --api-key-file=/home/humbug/api-keys/%(program_name)s command=python /home/humbug/humbug/bots/zephyr_mirror_backend.py --root-path=/home/humbug/humbug/bots --user=USERNAME --enable-log=/home/humbug/logs/mirror-log-%(program_name)s --use-sessions --session-path=/home/humbug/zephyr_sessions/%(program_name)s --api-key-file=/home/humbug/api-keys/%(program_name)s --ignore-expired-tickets
priority=200 ; the relative start priority (default 999) priority=200 ; the relative start priority (default 999)
autostart=true ; start at supervisord start (default: true) autostart=true ; start at supervisord start (default: true)
autorestart=true ; whether/when to restart (default: unexpected) autorestart=true ; whether/when to restart (default: unexpected)