# sevlyar/go-daemon

A library for writing system daemons in golang.

Repository: https://github.com/sevlyar/go-daemon
Canonical: https://ross.abutalabs.com/products/go-daemon
Language: Go
License: MIT
License Family: permissive
Topics: go, golang, daemon, library, pid, pidfile
Last push: 2026-07-19T10:47:50+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 93, release rhythm 61, longevity 100
- inputs: {"age_days": 4798, "days_push": 45, "days_rel": 45, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2308, forks 254 (observed 2026-08-28T04:06:35.942153+00:00)

## What it is
A Go library for writing system daemons on UNIX-based operating systems. It provides goroutine-safe daemonization, pid-file management, and system signal handling by re-executing the process with a marker environment variable instead of using fork.

## Use cases
- turn a Go program into a background daemon
- manage pid files for a long-running service
- handle system signals in a daemonized Go process
- run a background worker on Linux or macOS
- control and release a daemon process safely

## When to choose
- you need to daemonize a Go application on Linux or macOS
- you want built-in pid-file handling and signal management
- you need goroutine-safe daemonization without fork

## When to avoid
- you need Windows daemon support
- you need a full service manager rather than a daemonization library
- you require guaranteed backward compatibility before a v1.0 release

## Facets
- artifact type: library
- maturity: stable
- function: developer-tools, concurrency, file-system
- domain: developer-tools, operating-systems, backend
- platform: go, cli
- tags: daemonization, pidfile, unix, system-daemon, signal-handling, linux, macos

## Member repositories
- sevlyar/go-daemon (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:35.942153+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:39:38.419310+00:00, confidence not recorded.
  - readme: https://github.com/sevlyar/go-daemon (fetched 2026-08-28T04:06:35.942153+00:00, sha 84e10b05b398)
- Data as of 2026-08-30T08:39:29.467469+00:00.
