Skip to content

Commit

Permalink
Merge pull request #70 from mariux64/add-unbound-service-unit
Browse files Browse the repository at this point in the history
Add unbound service unit
  • Loading branch information
pmenzel authored Jan 30, 2019
2 parents b02990f + 95e8f4f commit c16b63d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
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

0 comments on commit c16b63d

Please sign in to comment.