Watchmedo is a command that is part of the watchdog package.
I plan on using it for local Django/celery development. As I read about in Auto-reload celery on code changes,
watchmedo supports an
auto-restart argument. With this, it takes control of a long-running subprocess and restarts it on matched file system events. Have a look at
watchmedo auto-restart --help for more details.