Skip to main content

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

Project description

# daemonize

## Description daemonize is a library for writing system daemons in Python. It has some bits from [daemonize.sourceforge.net](http://daemonize.sourceforge.net). It is distributed under MIT license.

[![Build Status](https://secure.travis-ci.org/thesharp/daemonize.png)](http://travis-ci.org/thesharp/daemonize)

## Installation You can install it from Python Package Index (PyPI):

$ pip install daemonize
## Usage

from time import sleep from daemonize import Daemonize

pid = “/tmp/test.pid”

def main():
while True:
sleep(5)

daemon = Daemonize(app=”test_app”, pid=pid, action=main) daemon.start()

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 daemonize, version 2.0
Filename, size File type Python version Upload date Hashes
Filename, size daemonize-2.0.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page