Skip to main content

Make daemon for your program

Project description

NAME

x100daemon - Make daemon for your program

SYNOPSIS

from x100daemon import Daemon

pidfile = '/var/pid/hello.pid'
d = Daemon(pidfile)
d.daemonize()

#your program district

DESCRIPTION

x100daemon make daemon for your program

METHODS

pidfile

Assgin your pidfile path

daemonize

make daemon

SUPPORTED PYTHON VERSIONS

daemonize only supports python 3.3 or newer.

EXAMPLES

example

from x100daemon import Daemon

pidfile = '/var/pid/hello.pid'
d = Daemon(pidfile)
d.daemonize()

#your program district

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

x100daemon-0.1.1.tar.gz (1.8 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page