From a8e5551395f725e1a1ce2b9cd55d42640b8623c6 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 30 Jul 2018 16:27:53 -0700 Subject: [PATCH] restart-server: Ensure we restart process-fts-updates. This is mostly important in that if you're running this as part of a follow-up to a failed upgrade, and you don't do this, process-fts-updates will be left not running, resulting in full-text search not updating. --- scripts/restart-server | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/restart-server b/scripts/restart-server index 4a6bdfafdf..b0c5274eb6 100755 --- a/scripts/restart-server +++ b/scripts/restart-server @@ -50,5 +50,8 @@ if using_sso.strip() == b'True': logging.info("Restarting Apache WSGI process...") subprocess.check_call(["pkill", "-f", "apache2", "-u", "zulip"]) +if os.path.exists("/etc/supervisor/conf.d/zulip_db.conf"): + subprocess.check_call(["supervisorctl", "restart", "process-fts-updates"]) + logging.info("Done!") print(OKGREEN + "Application restarted successfully!" + ENDC)