Skip to main content

Python Daemon library

Project description

python-seth is a pretty simple object named Daemon used to daemonize a process.

To do so subclass the Daemon object and override its run method with the code you want to turn into a unix daemon.

You can override the shutdown method which is called on Daemon stop (either via the stop method or on SIGTERM).

Cf. examples for code snippet.

FEATURES:
  • redirects stderr|stdout to file
  • writes a pid file
  • transparently deletes the pid file at stop
  • catch SIGTERM and handles a clean stop via shutdown method
UPSTREAM:
Code maintained at http://git.kaliko.me/?p=python-daemon.git Please send feedback at <kaliko@azylum.org>

Project details


Download files

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

Files for python-seth, version 0.5
Filename, size File type Python version Upload date Hashes
Filename, size python-seth-0.5.tar.gz (15.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page