Skip to content

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

Notifications You must be signed in to change notification settings

bmhatfield/python-pidfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

import daemon
context = daemon.DaemonContext()
context.pidfile = PidFile("/var/run/mydaemon")

or

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages