Skip to content

Add unbound service unit #70

Merged
merged 2 commits into from
Jan 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ install_data misc_systemd_units/automount.service "$DESTDIR$systemdunitdi
install_data misc_systemd_units/enable_overcommit_memory.service "$DESTDIR$systemdunitdir/enable_overcommit_memory.service"
install_data misc_systemd_units/gdm.service "$DESTDIR$systemdunitdir/gdm.service"
install_data misc_systemd_units/lazy-umount-nfs.service "$DESTDIR$systemdunitdir/lazy-umount-nfs.service"
install_data misc_systemd_units/unbound.service "$DESTDIR$systemdunitdir/unbound.service"
install_exec mkmotd/mkmotd.pl "$DESTDIR$usr_sbindir/mkmotd.pl"
install_data mkmotd/motd.service "$DESTDIR$systemdunitdir/motd.service"
install_exec mxgrub/mxgrub "$DESTDIR$usr_sbindir/mxgrub"
Expand Down
12 changes: 12 additions & 0 deletions misc_systemd_units/unbound.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
After=network.service gateway.service

[Service]
Type=forking
ExecStartPre=-/usr/sbin/unbound-startup setup-var
ExecStart=/usr/sbin/unbound
PIDFile=/var/unbound/unbound.pid

[Install]
WantedBy=network.target