https://github.com/itsolutionsfactory/pid-file-checker
Check for the presence of a pid file. The file must contain one and only one integer which must be the pid of a running process.
https://github.com/itsolutionsfactory/pid-file-checker
daemon pid
Last synced: 10 months ago
JSON representation
Check for the presence of a pid file. The file must contain one and only one integer which must be the pid of a running process.
- Host: GitHub
- URL: https://github.com/itsolutionsfactory/pid-file-checker
- Owner: itsolutionsfactory
- License: mit
- Created: 2021-05-11T11:04:59.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-11T11:43:57.000Z (about 5 years ago)
- Last Synced: 2025-07-28T08:26:20.725Z (10 months ago)
- Topics: daemon, pid
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pid-file-checker
```
$ pfc --help
usage: pfc [-h] pid_file
Check for the presence of a pid file. The file must contain one and only one
integer which must be the pid of a running process. Otherwise, return a code
!= 0. Meant to be used in a healthcheck context like with Docker or
Kubernetes.
positional arguments:
pid_file The pid file you want to monitor
optional arguments:
-h, --help show this help message and exit
Brought to you by IT4NW@ITSF.
```
## Installation
```bash
python -m pip install pid-file-checker
```