# go-systemd

> Go bindings for systemd socket activation, sd_notify, journald, D-Bus and unit files

Source: https://talira.ai/catalog/go-systemd-kbtd71b3
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / system bindings](https://talira.ai/categories/libraries/system-bindings), [languages / go](https://talira.ai/categories/languages/go)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [CoreOS](https://talira.ai/orgs/coreos.md)

go-systemd is a set of Go packages for working with systemd: socket activation, service status notification through the sd_notify protocol, starting, stopping and inspecting units over systemd's D-Bus API, writing to journald in pure Go and reading it through journald's C API, logind and machined integration, and parsing and comparing unit files.

## Links

- GitHub: https://github.com/coreos/go-systemd
- Docs: https://pkg.go.dev/mod/github.com/coreos/go-systemd/v22

## Problems it solves

- tell systemd my Go service has finished starting up
- use systemd socket activation in a Go HTTP server
- write structured logs to journald from a Go program

## Features

- socket activation for Go servers
- sd_notify service status and watchdog notifications
- start, stop and inspect units over systemd's D-Bus API
- write to journald in pure Go and read it through its C API
- logind and machined integration, and unit file parsing

## Limitations

- Reading the journal (sdjournal) needs cgo and the journal headers[^1]
- Needs Go 1.24 or newer[^1]

## Trust

Overall: 0.52 out of 1.
Signals: maintenance 0.61, adoption 0.69, momentum 0.38, community 0.85, backing 0.30, extensibility 0.00.

- last commit 2 days ago
- 2 commits in the last 90 days
- latest release v22.7.0 10 months ago
- 2.7k GitHub stars
- 132 contributors
- backed by CoreOS

## Sources

[^1]: https://github.com/coreos/go-systemd#readme (checked 28 Nov 2026)
[^2]: https://github.com/coreos/go-systemd/blob/main/LICENSE (checked 28 Nov 2026)
