Skip to content

liambuchanan/fseventwatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Supervisor event listener for handling file system events

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages