Skip to main content

Library to enable your code run as a daemon process on Unix-like systems.

Project description

Description

daemonize is a library for writing system daemons in Python. It was forked from daemonize.sourceforge.net.

Installation

You can install it from Python Package Index (PyPI) using $ pip install daemonize

Usage

#!/usr/bin/python

import time

import daemonize

pid = “/tmp/test.pid” logfile = “/tmp/test.log”

def main():
while True:

daemonize.logging.debug(“Doing some pointless job.”) time.sleep(5)

daemonize.start(main, pid, logfile, debug=True)

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

daemonize-1.3.tar.gz (2.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page