Skip to main content
python-pidfile
==============

A Pidfile Context Manager compatible with python-daemon's DaemonContext()


Thanks
======

This is a direct copy (minus example usage in file) from an ActiveState recipe found here:
http://code.activestate.com/recipes/577911-context-manager-for-a-daemon-pid-file/

Example Usage
=============
```python
import daemon
context = daemon.DaemonContext()
context.pidfile = PidFile("/var/run/mydaemon")
```

or

```python
with daemon.DaemonContext(working_directory=".", pidfile=PidFile(pidpath)):
#do your daemonstuff here
```

Metadata

Release files for pidfile 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pidfile 0.1.1
File Size Uploaded
pidfile-0.1.1.tar.gz 1.5 kB Details

Release files / pidfile-0.1.1.tar.gz

Download URL pidfile-0.1.1.tar.gz
Size 1.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f1ea120cf68bf5867f5bae35aeeeac3df21b81eecc76cb8911177b06efc816e3
BLAKE2b-256 checksum
How to use checksums
dc996aa63129363386783d04ba9f388cd1d8e92a4f3d2e780501d213a6dd8dc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page