Monitor if a process is running. If not, restart it.
procwatch --pid 34349
procwatch --match "python server.py"
procwatch --port 8000
- Check every N seconds
- Log events
- Handle failures
- Timeout protection
procwatch --match "python -m http.server 8000" --restart "python -m http.server 8000"
procwatch --port 8000 --restart "/usr/bin/startmyapp" --interval 4
- Loop automation
- Subprocess execution
- Timeouts
- Basic watchdog design