Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pidlockfile-0.2.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file pidlockfile-0.2.tar.gz.

File metadata

  • Download URL: pidlockfile-0.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pidlockfile-0.2.tar.gz
Algorithm Hash digest
SHA256 e11446461ba74d781ef4e3ae8854030bed0f11d790394a41c71670a9ef869a3f
MD5 557787220d85a1f6f7c7f9ab1ebdf0de
BLAKE2b-256 fc8574515b83e4686b4a38cf8ea1cb165bf498121e6a173098ea9480987d2267

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page