rrda

REST API allowing to perform DNS queries over HTTP
Log | Files | Refs | README | LICENSE

commit 5d7fb1c0d5b43c4a92f9bbeed5483daf9e8399e7
parent 46888fe48443c8326e30b2972d4822fcd379b7d2
Author: Frederic Cambus <fred@statdns.com>
Date:   Wed, 23 Nov 2022 12:35:13 +0100

Add a systemd unit file and document launching RRDA via systemd.

Diffstat:
MREADME.md | 11+++++++++++
Asystemd/rrda.service | 12++++++++++++
2 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -52,6 +52,17 @@ By default, RRDA will bind on localhost, port 8080. ## Running RRDA at boot time +### Systemd unit file + +RRDA is bundled with a systemd unit file, see: `systemd/rrda.service` + +Copy the `systemd/rrda.service` file in `/etc/systemd/system` and the RRDA +binary in `/usr/local/sbin`. + +To launch the daemon at startup, run: + + systemctl enable rrda + ### Debian init script RRDA is bundled with a Debian init script, see: `debian/rrda` diff --git a/systemd/rrda.service b/systemd/rrda.service @@ -0,0 +1,12 @@ +[Unit] +Description=RRDA REST DNS API +After=network.target + +[Service] +Type=simple +ExecStart=rrda +Restart=on-failure +DynamicUser=yes + +[Install] +WantedBy=multi-user.target