From 3dda07bad05a13b9d47ea2b4dddabbef938190d7 Mon Sep 17 00:00:00 2001 From: Reid Barton Date: Thu, 25 May 2017 19:59:08 -0400 Subject: [PATCH] bots: Move zephyr-related files to api/integrations/zephyr/. --- {bots => integrations/zephyr}/check-mirroring | 0 {bots => integrations/zephyr}/process_ccache | 2 +- {bots => integrations/zephyr}/sync-public-streams | 0 {bots => integrations/zephyr}/zephyr_mirror.py | 0 {bots => integrations/zephyr}/zephyr_mirror_backend.py | 0 {bots => integrations/zephyr}/zmirror-renew-kerberos | 0 {bots => integrations/zephyr}/zmirror_private.conf.template | 2 +- 7 files changed, 2 insertions(+), 2 deletions(-) rename {bots => integrations/zephyr}/check-mirroring (100%) rename {bots => integrations/zephyr}/process_ccache (94%) rename {bots => integrations/zephyr}/sync-public-streams (100%) rename {bots => integrations/zephyr}/zephyr_mirror.py (100%) rename {bots => integrations/zephyr}/zephyr_mirror_backend.py (100%) rename {bots => integrations/zephyr}/zmirror-renew-kerberos (100%) rename {bots => integrations/zephyr}/zmirror_private.conf.template (62%) diff --git a/bots/check-mirroring b/integrations/zephyr/check-mirroring similarity index 100% rename from bots/check-mirroring rename to integrations/zephyr/check-mirroring diff --git a/bots/process_ccache b/integrations/zephyr/process_ccache similarity index 94% rename from bots/process_ccache rename to integrations/zephyr/process_ccache index bc0b718..0badf2d 100755 --- a/bots/process_ccache +++ b/integrations/zephyr/process_ccache @@ -18,7 +18,7 @@ open(api_key_path, "w").write(api_key + "\n") # Setup supervisord configuration supervisor_path = "/etc/supervisor/conf.d/%s.conf" % (program_name,) -template = "/home/zulip/zulip/bots/zmirror_private.conf.template" +template = "/home/zulip/zulip/api/integrations/zephyr/zmirror_private.conf.template" template_data = open(template).read() session_path = "/home/zulip/zephyr_sessions/%s" % (program_name,) diff --git a/bots/sync-public-streams b/integrations/zephyr/sync-public-streams similarity index 100% rename from bots/sync-public-streams rename to integrations/zephyr/sync-public-streams diff --git a/bots/zephyr_mirror.py b/integrations/zephyr/zephyr_mirror.py similarity index 100% rename from bots/zephyr_mirror.py rename to integrations/zephyr/zephyr_mirror.py diff --git a/bots/zephyr_mirror_backend.py b/integrations/zephyr/zephyr_mirror_backend.py similarity index 100% rename from bots/zephyr_mirror_backend.py rename to integrations/zephyr/zephyr_mirror_backend.py diff --git a/bots/zmirror-renew-kerberos b/integrations/zephyr/zmirror-renew-kerberos similarity index 100% rename from bots/zmirror-renew-kerberos rename to integrations/zephyr/zmirror-renew-kerberos diff --git a/bots/zmirror_private.conf.template b/integrations/zephyr/zmirror_private.conf.template similarity index 62% rename from bots/zmirror_private.conf.template rename to integrations/zephyr/zmirror_private.conf.template index 97c6ee4..83545e3 100644 --- a/bots/zmirror_private.conf.template +++ b/integrations/zephyr/zmirror_private.conf.template @@ -1,5 +1,5 @@ [program:zmirror-USERNAME] -command=/home/zulip/zulip/bots/zephyr_mirror_backend.py --root-path=/home/zulip/zulip --user=USERNAME --log-path=/home/zulip/logs/mirror-log-%(program_name)s --use-sessions --session-path=/home/zulip/zephyr_sessions/%(program_name)s --api-key-file=/home/zulip/api-keys/%(program_name)s --ignore-expired-tickets --nagios-path=/home/zulip/mirror_status/%(program_name)s --nagios-class=zulip-mirror-nagios --site=https://zephyr.zulipchat.com +command=/home/zulip/zulip/api/integrations/zephyr/zephyr_mirror_backend.py --root-path=/home/zulip/zulip --user=USERNAME --log-path=/home/zulip/logs/mirror-log-%(program_name)s --use-sessions --session-path=/home/zulip/zephyr_sessions/%(program_name)s --api-key-file=/home/zulip/api-keys/%(program_name)s --ignore-expired-tickets --nagios-path=/home/zulip/mirror_status/%(program_name)s --nagios-class=zulip-mirror-nagios --site=https://zephyr.zulipchat.com priority=200 ; the relative start priority (default 999) autostart=true ; start at supervisord start (default: true) autorestart=true ; whether/when to restart (default: unexpected)