daemonize
Library to enable your code run as a daemon process on Unix-like systems.
Decision gist · record as of 2026-08-14
Yes, but with caution. Daemonize is stable and has no known vulnerabilities, making it suitable for legacy systems or simple one-off daemon scripts on older Python versions. However, do not use it for new projects or for production systems where you need active maintenance and security updates. Consider actively maintained process managers instead.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Unix-like system required (Linux, macOS, BSD); does not work on Windows.
- Tested on Python 2.6, 2.7, 3.3, 3.4, 3.5; compatibility with newer versions is unverified.
- Installation is straightforward with no runtime dependencies.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and imposes no restrictions on use, modification, or distribution in proprietary or open-source projects.
last release 2018-12-12 (2802 days) · last repo commit 2019-12-09 · 452 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 433,227 downloads/mo, #6,703 on PyPI
Alternatives
Verify before relying
from daemonize import Daemonize
from time import sleep
def main():
while True:
sleep(5)
daemon = Daemonize(app="myapp", pid="/tmp/myapp.pid", action=main)
daemon.start()- Whether the package works reliably on Python versions beyond 3.5, given its abandoned status
- Whether file descriptor handling and signal management remain correct under modern Unix kernels
- Whether the package is compatible with containerized or systemd-managed environments
What it is and what it does
Daemonize is a minimal library for turning Python scripts into Unix daemon processes. It handles the low-level fork and file descriptor management needed to properly detach a process from the terminal and run it in the background with a PID file. The library accepts a callable, an app name, and a PID file path, then manages the daemonization lifecycle when you call start().
The package is designed for straightforward daemon creation on Unix-like systems (Linux, macOS, BSD). It supports keeping specific file descriptors open—useful for logging—via the keep_fds parameter. However, it has been abandoned since late 2019 and was last tested on Python 2.6, 2.7, 3.3, 3.4, 3.5, so its behavior on modern Python versions and contemporary Unix environments is not guaranteed.
Use it for
- Convert a long-running Python script into a background service that survives terminal logout and can be managed via PID file.
- Create a simple monitoring or maintenance daemon that performs periodic tasks without blocking the shell.
- Build a lightweight background worker for Unix systems when a full process manager is not available.
- Daemonize a Python application that needs to log to files while running detached from the controlling terminal.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, but with caution.
Daemonize is stable and has no known vulnerabilities, making it suitable for legacy systems or simple one-off daemon scripts on older Python versions. However, do not use it for new projects or for production systems where you need active maintenance and security updates. Consider actively maintained process managers instead.
Install
daemonize on PyPI
Before you install
Installation is straightforward with no runtime dependencies. However, the package is abandoned—last release was 2018-12-12 and last commit 2019-12-09—so it will not receive bug fixes or security updates.
Unix-like system required (Linux, macOS, BSD); does not work on Windows. Tested on Python 2.6, 2.7, 3.3, 3.4, 3.5; compatibility with newer versions is unverified.
License in practice
MIT license is permissive and imposes no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
from daemonize import Daemonize
from time import sleep
def main():
while True:
sleep(5)
daemon = Daemonize(app="myapp", pid="/tmp/myapp.pid", action=main)
daemon.start()
Verify before relying
- Whether the package works reliably on Python versions beyond 3.5, given its abandoned status
- Whether file descriptor handling and signal management remain correct under modern Unix kernels
- Whether the package is compatible with containerized or systemd-managed environments
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 2,802 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 433,227 / month, #6,703 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: MacOS :: MacOS XOperating System :: POSIX :: BSD :: FreeBSDOperating System :: POSIX :: BSD :: NetBSDOperating System :: POSIX :: BSD :: OpenBSDOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Topic :: Software Development |
Evidence: daemonize-2.5.0-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “background service unix”
- daemonizeDaemonize provides a Python library for converting regular Python…
- python-daemonImplements PEP 3143 well-behaved Unix daemon processes, handling the…
- cotyledonCotyledon provides a framework for building long-running services…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also jeedomdaemon · python-daemon · pid · manhole · clamd · pytest-hot-reloading · portalocker · pmd-pytcp · supervisor · cysystemd