zulip/scripts/lib
Alex Vandiver 64b44a12f5 puppet: Add an exec rule to reload the whole supervisor config.
When supervisor is first installed, it is started automatically, and
creates the socket, owned by root.  Subsequent reconfiguration in
puppet only calls `reread + update`, which is insufficient to apply
the `chown = zulip:zulip` line in `supervisord.conf`, leaving the
socket owned by `root` and the last part of the installation unable to
restart `supervisor` services as the `zulip` user.  The `chown` line
in `scripts/lib/install` exists to paper over this.

Add a separate exec target for changes to `supervisord.conf` itself,
which restarts the full service.  This leaves the default `restart`
action on the service for the lightweight `reread + update` action,
which is more common.

We use `systemctl` only on redhat-esque builds, because CI runs
Ubuntu, but init is not systemd in that context.  `systemctl reload`
is sufficient to re-apply the socket ownership, but a full `restart`
and not `reload` is necessary under `/etc/init.d/supervisor`.
2020-07-01 10:40:54 -07:00
..
third install-yarn: Fix buggy status check for the signature. 2018-04-09 15:09:37 -07:00
__init__.py Factor out venv-creating code from provision.py. 2016-06-21 11:25:41 -07:00
build-pgroonga provision: Added provision support for Ubuntu 20.04(Focal). 2020-03-17 14:57:14 -07:00
certbot-maybe-renew certbot: Switch to use certbot from apt. 2020-06-08 21:59:29 -07:00
check_rabbitmq_queue.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
clean_emoji_cache.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
clean_node_cache.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
clean_venv_cache.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
clean-unused-caches python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
create-production-venv python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
create-thumbor-venv python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
email-mirror-postfix email-mirror-postfix: Handle 8-bit messages correctly. 2020-06-14 20:24:06 -07:00
hash_reqs.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
install puppet: Add an exec rule to reload the whole supervisor config. 2020-07-01 10:40:54 -07:00
install-node install-node: Upgrade Node.js to 12.18.0. 2020-06-07 11:06:57 -07:00
node_cache.py python: Convert percent formatting to "".format in certain files. 2020-06-14 23:27:22 -07:00
pythonrc.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
queue_workers.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
setup_path.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
setup_venv.py python: Convert percent formatting to "".format in certain files. 2020-06-14 23:27:22 -07:00
setup-apt-repo installer: Remove code specific to stretch or xenial. 2020-06-24 12:57:38 -07:00
setup-apt-repo-debathena installer: Remove code specific to stretch or xenial. 2020-06-24 12:57:38 -07:00
setup-yum-repo setup-yum-repo: Update url of postgresql rpm repo. 2020-06-08 11:26:07 -07:00
sharding.py python: Convert more "".format to Python 3.6 f-strings. 2020-06-13 15:39:00 -07:00
unpack-zulip python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
upgrade-zulip python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
upgrade-zulip-from-git python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
upgrade-zulip-stage-2 upgrade: Don't prompt in the second apt-get upgrade. 2020-06-26 16:16:12 -07:00
zulip_tools.py settings: Split hostname from port more carefully. 2020-06-29 22:19:47 -07:00