PID file implementation for use with python-daemon
Project description
pidlockfile: PID lock file module for use with python-daemon
This module is a replacement for ‘python-daemon’ pidfile module. TimeoutPIDLockFile class from pidfile implements “advisory” locking. Essentially, it does not really lock anthing. It simply checks lock file existence and, as a result, it can’t detect certain situations like server process crush and release the lock.
This module uses python’s fcntl facility to lock the PID file. That means that is if daemon process is terminated unexpectedly, lock is automatically released and daemon can be restarted.
Installation
pip install pidlockfile
Running unit tests
From the project top level directory execute:
python -m unittest discover -v
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pidlockfile-0.3.tar.gz
.
File metadata
- Download URL: pidlockfile-0.3.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c46c6bb4664658ab1040ef0e5ba660550cf52778b30159fbfbf182b3df5a18d2 |
|
MD5 | 43129e89e307ae0588a678bbb2ad2529 |
|
BLAKE2b-256 | 4b0140d9ac416916adcb7697e5d0c3c899bebe6549a174960db0a9b68ca016de |