Skip to content

Instantly share code, notes, and snippets.

@lgreenlee
Last active January 25, 2022 01:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lgreenlee/54c86072fe68b0369999 to your computer and use it in GitHub Desktop.
Save lgreenlee/54c86072fe68b0369999 to your computer and use it in GitHub Desktop.
TinyDNS/DJBDNS systemd service configuration for Ubuntu
[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
@siemer
Copy link

siemer commented Jan 25, 2022

@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