Skip to content

Instantly share code, notes, and snippets.

@kbabioch
Created April 10, 2023 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kbabioch/62bacbf28f715b92f6dd79205845e34d to your computer and use it in GitHub Desktop.
Save kbabioch/62bacbf28f715b92f6dd79205845e34d to your computer and use it in GitHub Desktop.
systemd unit files for dnssec-keymgr

systemd unit files for dnssec-keymgr (bind 9.16). No longer relevant with 9.18, but might still be useful. Archiving it here.

dnssec-keymgr@.service:

[Unit]
Description=dnssey-keymgr for %i

[Service]
Environment=DNSSEC_POLICY_FILE=/etc/dnssec-policy.conf
EnvironmentFile=-/etc/conf.d/dnssec-keymgr
ExecStart=/usr/bin/dnssec-keymgr -c $DNSSEC_POLICY_FILE %i
User=named
Group=named

[Install]
WantedBy=multi-user.target

dnssec-keymgr@.timer:

[Unit]
Description=Daily invocation of dnssec-keymgr for %i

[Timer]
OnCalendar=daily
Persistent=true

[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment