Skip to content

Instantly share code, notes, and snippets.

@masatokawano
Created March 9, 2018 06:36
Show Gist options
  • Save masatokawano/6dd7c673084d9c1d01408232102d831c to your computer and use it in GitHub Desktop.
Save masatokawano/6dd7c673084d9c1d01408232102d831c to your computer and use it in GitHub Desktop.
[Unit]
Description=Unbound DNS server
Documentation=man:unbound(8)
After=network.target
Before=nss-lookup.target
Wants=nss-lookup.target
[Service]
Type=notify
Restart=on-failure
EnvironmentFile=-/etc/default/unbound
ExecStartPre=-/usr/lib/unbound/package-helper chroot_setup
ExecStartPre=-/usr/lib/unbound/package-helper root_trust_anchor_update
ExecStart=/usr/sbin/unbound -d $DAEMON_OPTS
ExecReload=/usr/sbin/unbound-control reload
PIDFile=/run/unbound.pid
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment