Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

This is a Python class that will daemonize your Python script so it can continue running in the background

Project Description

NAME

DaemonLite is a library for writing system daemons in Python. It is distributed under MIT license.

Based on https://github.com/serverdensity/python-daemon


SYNOPSIS

from DaemonLite import DaemonLite

class Staff(DaemonLite) :
    def run(self) :
        # Do something

staff = Staff('/var/staff/staff.pid')
staff.start()

Actions

start() - starts the daemon (creates PID and daemonizes). stop() - stops the daemon (stops the child process and removes the PID). restart() - does stop() then start().

Foreground

This is useful for debugging because you can start the code without making it a daemon. The running script then depends on the open shell like any normal Python script.

To do this, just call the run() method directly.

staff.run()

DESCRIPTION

This is a Python class that will daemonize your Python script so it can continue running in the background. It works on Unix, Linux and OS X, creates a PID file and has standard commands (start, stop, restart) + a foreground mode.
Release History

Release History

This version
History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
DaemonLite-0.0.2.tar.gz (3.2 kB) Copy SHA256 Checksum SHA256 Source Sep 30, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting