Skip to main content

A set of classes and functions for demonizing a process and related tools..

Project description


A set of classes and functions for demonizing a process and related tools.

It is part of the Unicon project.


pip install --user uc-daemon
and use
import uc_daemon



Become a daemon. To base process returns daemonized process id on successful and less than zero on fails. To daemonized process returns zero.


Redirects standart descriptors to specified file handle.

Global constants


You may override this constant to manage debugging messages.


import os
import sys
import uc_daemon

pid = uc_daemon.daemonize()

if (pid == 0):
    print("I'm daemon! My pid is %d" % os.getpid())
    print("Daemon started with pid %d and my pid is %d" % (pid, os.getpid()))    

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 uc-daemon, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size uc_daemon-0.0.1-py3-none-any.whl (15.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size uc_daemon-0.0.1.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

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