| 1 | [Unit] |
| 2 | Description=Unbound DNS server |
| 3 | Documentation=man:unbound(8) |
| 4 | After=network.target |
| 5 | Before=nss-lookup.target |
| 6 | Wants=nss-lookup.target |
| 7 | |
| 8 | [Service] |
| 9 | Type=notify |
| 10 | Restart=on-failure |
| 11 | Environment=DAEMON_OPTS= |
| 12 | EnvironmentFile=-/etc/default/unbound |
| 13 | ExecStartPre=-/usr/libexec/unbound-helper chroot_setup |
| 14 | ExecStartPre=-/usr/libexec/unbound-helper root_trust_anchor_update |
| 15 | ExecStart=/usr/sbin/unbound -d -p $DAEMON_OPTS |
| 16 | ExecStopPost=-/usr/libexec/unbound-helper chroot_teardown |
| 17 | ExecReload=+/bin/kill -HUP $MAINPID |
| 18 | |
| 19 | [Install] |
| 20 | WantedBy=multi-user.target |