Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.8 KB

README.md

File metadata and controls

35 lines (28 loc) · 1.8 KB

In the unlikely event anyone is using this, please see supervisor-event-listeners.

Build Status Coverage Status

fseventwatcher

A supervisor event listener which listens to TICK* events.

If any file system events occur at the given path between ticks, the specified processes will be restarted.

Usage

fseventwatcher.py --help
usage: fseventwatcher [-h] [-p [PROGRAM [PROGRAM ...]]] [-a] -f PATH
                      [PATH ...] [-r]
                      [--watched-events [{moved,created,deleted,modified} [{moved,created,deleted,modified} ...]]]
                      [--dither DITHER_MAX]

Supervisor TICK event listener which restarts processes if file system changes
occur between ticks.

optional arguments:
  -h, --help            show this help message and exit
  -p [PROGRAM [PROGRAM ...]], --programs [PROGRAM [PROGRAM ...]]
                        Supervisor process name/s to be restarted if in
                        RUNNING state.
  -a, --any-program     Restart any supervisor processes in RUNNING state.
  -f PATH [PATH ...], --paths PATH [PATH ...]
                        Path to watch for file system events.
  -r, --recursive       Watch path/s recursively.
  --watched-events [{moved,created,deleted,modified} [{moved,created,deleted,modified} ...]]
                        Watch file system for specified events (by default all
                        events will be watched).
  --dither DITHER_MAX   Add dither before restarting processes.