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


Release history Release notifications

This version
History Node

0.3

History Node

0.2

History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pidlockfile-0.3.tar.gz (7.9 kB) Copy SHA256 hash SHA256 Source None Jan 8, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page