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
Metadata
Release files for pidlockfile 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pidlockfile-0.3.tar.gz | 7.9 kB | Details |
Release files / pidlockfile-0.3.tar.gz
| Download URL | pidlockfile-0.3.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c46c6bb4664658ab1040ef0e5ba660550cf52778b30159fbfbf182b3df5a18d2
|
|
BLAKE2b-256 checksum How to use checksums |
4b0140d9ac416916adcb7697e5d0c3c899bebe6549a174960db0a9b68ca016de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |