Skip to main content

Dead Easy UNIX Daemons!

Project description

Dead Easy POSIX Daemons for Python!

import undead

def my_daemon_process():
    """ This function will be daemonized. """
    from time import sleep
    while True:


pip install undead


Name of the logger and process.

Default: __name__ of decorated callable


Path to pidfile.

Default: ~/.{}/{}.pid


Log level.

Default: "WARNING"


The name of the process (that shows up in ps etc.)

Default: None (No manipulation of process name)


import undead = "my-first-daemon"
undead.process_name = "leDeamon"

def my_daemon_process():
    """ This function will be daemonized. """
    # ...

Logging within the decorated handler

Just add log to your decorated signature, and the logger will be passed down. Log away captain!

import undead

def i_am_undead(log):
    log.warning("I'm warning you!")"Soap, 2 for $1.99")

The logfile will be created in ~/.i_am_undead



Project details

Download files

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

Source Distribution

undead-0.2.2.tar.gz (3.3 kB view hashes)

Uploaded source

Supported by

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