chiark / gitweb /
Add a systemd unit file for hippotatd.service
authorBen Harris <bjh21@bjh21.me.uk>
Sun, 1 Mar 2026 13:45:34 +0000 (13:45 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Sun, 1 Mar 2026 13:45:34 +0000 (13:45 +0000)
commit815913410e07aeba13922d8844e023720405e5e1
tree3a56d71081c885205a73db6f01b9d85d20ee7f3f
parent9c0809b21271282d2d7de3964f13e3964e8d8206
Add a systemd unit file for hippotatd.service

This mostly replicates the functionality of the existing init script.
It uses the same /etc/default/hippotatd as the init script, but loads it
using EnvironmentFile=.  That means that variable assignments in that
file will work, but not more complicated shell constructs.

systemd doesn't have a convenient way to set the service user from an
environment variable, so users who have set USER in
/etc/default/hippotatd will instead need to create a drop-in file under
/etc/systemd/system/hippotatd.service.d containing something like:

[Service]
User=my-hippotat-user

The init script checks that USER (possibly set by
/etc/default/hippotatd) and LOGNAME (set by systemd based on User=)
agree to make sure that both sources agree on what user hippotatd should
run as.
debian/hippotat-server.hippotatd.service [new file with mode: 0644]
debian/rules
docs/install.md