A watchdog-based watcher to monitor directory and restart processes