Process watchdog CLI for monitoring and restarting services
Project description
🔹 Task 3: Service Monitor & Auto-Restart
Goal:
Monitor if a process is running. If not, restart it.
Example:
procwatch --pid 34349
procwatch --match "python server.py"
procwatch --port 8000
Requirements:
- Check every N seconds
- Log events
- Handle failures
- Timeout protection
Multiple cli
procwatch --match "python -m http.server 8000" --restart "python -m http.server 8000"
procwatch --port 8000 --restart "/usr/bin/startmyapp" --interval 4
Skills Learned:
- Loop automation
- Subprocess execution
- Timeouts
- Basic watchdog design
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file procwatch_cli-0.1.1.tar.gz.
File metadata
- Download URL: procwatch_cli-0.1.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc2d3a14ceb3f6147fec48086a5b50ee2d00aa6a306a1f5b86c86bd531d22708
|
|
| MD5 |
a0a7ef0c22ebf3e7d32c0ce396539158
|
|
| BLAKE2b-256 |
2b3a27161912b6e0b966022e49e016ea4ab3df536519c1f6a424393b601a0977
|
File details
Details for the file procwatch_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: procwatch_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8253050426f004be4271c7a67d9e760c94ddc2e9637bc49144724e486b035742
|
|
| MD5 |
f4ca8728d9f372c96e891e754e137efe
|
|
| BLAKE2b-256 |
119a7e51b22715709d29b2e14b4f7a5a44f1c88901b6b0742aade68030e103d4
|