equalitie / swabber

Simple pubsub-based IP banning engine
7 stars 4 forks source link

Run swabber as a systemd service #16

Closed DonnchaC closed 6 years ago

DonnchaC commented 7 years ago

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.

DonnchaC commented 6 years ago

Superseded by #17