Skip to content
A basic example of a systemd service that logs events
C HCL Makefile
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.

Sample Daemon

A well-behaved daemon that does nothing (except log).

This program aims to act as an extremely basic daemon that can be run on Linux systems for testing purposes. It requires systemd, and provides systemd unit files, along with a converge module for installation.

It opens a unix doman socket and masks all unix signals. It will idle until a message is written to it's socket, or it receives a signal. Messages and signals are loggged with the current time in the log file. Nothing else is done.

Building from Source

Debian & Ubuntu

user@host:~$ apt-get install git build-essential libsystemd-dev && \
git clone && \
cd example-service && \
make && \
converge apply --local install-service.hcl
You can’t perform that action at this time.