zulip/scripts
Anders Kaseorg 9937734e50 terminate-psql-sessions: Only terminate if we have permissions.
We have been semi-accidentally relying on the fact that terminate-psql-sessions 
fails silently when there are PIDs we don't have permission to terminate.

This actually happens somewhat often, generally when we're doing a series of
operations in quick succession by different users, because postgres processes
live a little longer than the `psql` shell that started them.

As part of adding ON_STOP_ERROR to all of our postgres commands, it makes
sense to enforce we don't fail here, but that means we need to actually filter
the target PIDs to only ones we can actually kill.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2019-04-23 14:41:42 -07:00
..
lib script: Add static asset pipeline option to support OS upgrades. 2019-04-17 12:58:42 -07:00
nagios scripts: Remove nagios overrides for missedmessage_emails. 2019-04-13 20:43:07 -07:00
setup terminate-psql-sessions: Only terminate if we have permissions. 2019-04-23 14:41:42 -07:00
README.md docs: Update links from codebase to point to ReadTheDocs. 2017-11-16 10:53:49 -08:00
__init__.py Factor out venv-creating code from provision.py. 2016-06-21 11:25:41 -07:00
get-django-setting Remove `from __future__ import absolute_import`. 2017-10-17 22:59:42 -07:00
purge-old-deployments scripts: Remove unused imports. 2019-02-02 17:02:58 -08:00
restart-server scripts: Add argparse option to `restart-zerver` for `--fill-cache`. 2019-01-14 15:20:01 -08:00
upgrade-zulip Use #!/usr/bin/env for bash shebangs. 2018-12-17 17:21:08 -08:00
upgrade-zulip-from-git Use #!/usr/bin/env for bash shebangs. 2018-12-17 17:21:08 -08:00
zulip-puppet-apply puppet: Remove vendored puppetlabs apt and stdlibs dependencies. 2018-12-11 13:03:26 -08:00

README.md

This directory contains scripts that:

  • Generally do not require access to Django or the database (those are "management commands"), and thus are suitable to run operationally.

  • Are useful for managing a production deployment of Zulip (many are also used in a Zulip development environment, though development-only scripts live in tools/).

For more details, see https://zulip.readthedocs.io/en/latest/overview/directory-structure.html.