Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Simple process manager

Project Description

ReloadConf

Simple process manager. Reloadconf is a front-end for arbitrary commands. It will watch a directory for configuration files and optionally run a command to test those configuration files. When the configuration is valid a command (daemon) is executed. Whenever new configuration files are detected this procedure is repeated.

Here is an example usage for nginx.

$ reloadconf --config=/etc/nginx/nginx.conf --command="nginx -g nodaemon: true" --test="nginx -t" --watch=/tmp/nginx

First of all, if /etc/nginx/nginx.conf exists, it will be verified using nginx -t and if successful, nginx will be started. In either case reloadconf will then proceed to watch /tmp/nginx for a file name nginx.conf. If present, that fill will be tested, and a if successful a HUP signal will be sent to nginx (or nginx will be started).

Docker

ReloadConf is generally useful whenever you want a process to recieve a HUP signal after new configuration is written. It was written to be used with docker where one container generates a config file for a process in another container. To use it for this purpose, simply install then utilize reloadconf in your Dockerfile.

# Install reloadconf.
RUN pip install reloadconf

# Map a volume into the container.
VOLUME /mnt/data/nginx/:/conf/

# Watch for another container to modify the conf and reload nginx.
CMD reloadconf --command="nginx -c /conf/nginx.conf -g'nodaemon: true;'" --watch=/conf/in --test="nginx -c /conf/nginx.conf -t" --config=/conf/nginx.conf
Release History

Release History

This version
History Node

1.1.14

History Node

1.1.13

History Node

1.1.11

History Node

1.1.10

History Node

1.1.9

History Node

1.1.8

History Node

1.1.7

History Node

1.1.5

History Node

1.1.4

History Node

1.1.3

History Node

1.1.2

History Node

1.1.1

History Node

1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
reloadconf-1.1.14.tar.gz (5.8 kB) Copy SHA256 Checksum SHA256 Source Jun 15, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting