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()

## File descriptors Daemonize object’s constructor understands the optional argument keep_fds which can contain a list of fds which should remain open. TODO: explain it more.

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-2.1.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file daemonize-2.1.tar.gz.

File metadata

  • Download URL: daemonize-2.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for daemonize-2.1.tar.gz
Algorithm Hash digest
SHA256 50e62d4b0c38b023d4067cb27e5378687daf01dbfaa445102bc96b23419eb389
MD5 241c976c176ae03bf09aad3434f05352
BLAKE2b-256 58077cff97c29c36cc66517d5cc9eff6a195384398f1f6e52b763733595a0f98

See more details on using hashes here.

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