# torfsen/python-systemd-tutorial

A tutorial for writing a systemd service in Python

Repository: https://github.com/torfsen/python-systemd-tutorial
Canonical: https://ross.abutalabs.com/products/python-systemd-tutorial
Language: Python
License Family: other
Topics: python, systemd, tutorial
Last push: 2023-02-28T01:30:05+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2771, "days_push": 1283, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1406, forks 143 (observed 2026-08-28T04:04:38.190502+00:00)

## What it is
A tutorial explaining how to write and run a systemd service in Python, including a demo service script and unit file. It walks through user services and then converting them into system services.

## Use cases
- learn how to write a systemd service in python
- run a python script as a systemd daemon
- create a systemd unit file for a python app
- convert a user service to a system service
- auto-start a python program on linux boot

## When to choose
- you want a beginner-friendly introduction to systemd services for Python
- you need a minimal working example of a Python daemon with a unit file

## When to avoid
- you need a production-ready service framework or library
- you use a systemd version very different from 229 and need up-to-date details
- you need a maintained tool rather than documentation

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: documentation, developer-tools
- domain: operating-systems, developer-tools, tutorials
- platform: python, cli
- tags: systemd, daemon, unit-file, service-management, tutorial, linux

## Member repositories
- torfsen/python-systemd-tutorial (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:38.190502+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-30T04:38:44.732644+00:00, confidence not recorded.
  - readme: https://github.com/torfsen/python-systemd-tutorial (fetched 2026-08-28T04:04:38.190502+00:00, sha 0b15c72a2790)
- Data as of 2026-08-30T08:39:29.467469+00:00.
