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
```
==============
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)
| 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 |