The current swabber code contains daemonization code which forks and detaches from the launching TTY. We should use an existing daemon manager instead of implementing a basic version ourselves.
Systemd has a simple unit interface for creating daemon services. Systemd can manage starting the service on boot and automatically restarting the daemon if it dies.
This PR adds an example service unit file to the repo and includes installation instructions in the README. I have tested the service on Debian 9.
The current swabber code contains daemonization code which forks and detaches from the launching TTY. We should use an existing daemon manager instead of implementing a basic version ourselves.
Systemd has a simple unit interface for creating daemon services. Systemd can manage starting the service on boot and automatically restarting the daemon if it dies.
This PR adds an example service unit file to the repo and includes installation instructions in the README. I have tested the service on Debian 9.