Last active
January 25, 2022 01:19
-
-
Save lgreenlee/54c86072fe68b0369999 to your computer and use it in GitHub Desktop.
TinyDNS/DJBDNS systemd service configuration for Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=A DNS server daemon | |
Documentation=man:tinydns(8) | |
Requires=network.target | |
After=network.target | |
[Service] | |
Restart=always | |
PIDFile=/var/run/tinydns.pid | |
ExecStart=/etc/tinydns/run | |
WorkingDirectory=/etc/tinydns | |
[Install] | |
WantedBy=multi-user.target |
I mean... I have not seen the run
script, but PIDFile
is likely wrong. And definitively not needed.
@muelli Your UID and GID variables are dangerously wrong: tinydns does not complain, but will not drop root privileges. They should be filled with integers.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I run the old dbndns Debian package and I have
/etc/tinydns/run
taking care of IP, ROOT, GID and UID already.