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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for daemonize-1.3.tar.gz
Algorithm Hash digest
SHA256 0b281b45cb38cf11fd7c2b0289b2292014112306eeaf67c145b446586a9b4561
MD5 f392fd3291b3c81d92e6aac843a4049e
BLAKE2b-256 cb9694e4a7fe42729a70227d6fa0848b4cd17a6363314d26a9d6e8dfdb9ba85c

See more details on using hashes here.

Supported by

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