From 9e6e57f349cdf75d68024f96881f9f5771be18fe Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 19 Aug 2013 14:37:33 -0400 Subject: [PATCH] puppet: Run sync-public-streams via supervisor. (imported from commit f515cd36cd3138bcc8a13310276f3a6bb961ce33) --- .../zulip/files/supervisord/conf.d/zmirror.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/servers/puppet/modules/zulip/files/supervisord/conf.d/zmirror.conf b/servers/puppet/modules/zulip/files/supervisord/conf.d/zmirror.conf index 7de224a041..6462ac04a3 100644 --- a/servers/puppet/modules/zulip/files/supervisord/conf.d/zmirror.conf +++ b/servers/puppet/modules/zulip/files/supervisord/conf.d/zmirror.conf @@ -9,3 +9,15 @@ user=humbug ; setuid to this UNIX account to run the program redirect_stderr=true ; redirect proc stderr to stdout (default false) stdout_logfile=/var/log/humbug/zmirror.log ; stdout log path, NONE for none; default AUTO environment=HOME="/home/humbug",USER="humbug" + +[program:sync-public-streams] +command=python /home/humbug/humbug/bots/sync-public-streams +priority=200 ; the relative start priority (default 999) +autostart=true ; start at supervisord start (default: true) +autorestart=true ; whether/when to restart (default: unexpected) +stopsignal=TERM ; signal used to kill process (default TERM) +stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10) +user=humbug ; setuid to this UNIX account to run the program +redirect_stderr=true ; redirect proc stderr to stdout (default false) +stdout_logfile=/var/log/humbug/sync-public-streams.log ; stdout log path, NONE for none; default AUTO +environment=HOME="/home/humbug"