Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 491712 - net-dns/unbound systemd unit
Summary: net-dns/unbound systemd unit
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Tim Harder
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2013-11-19 21:25 UTC by Emery Hemingway
Modified: 2013-11-23 08:49 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
unbound.sevice (unbound.service,259 bytes, text/plain)
2013-11-19 21:27 UTC, Emery Hemingway
Details
unbound_at.sevice (unbound_.sevice,304 bytes, text/plain)
2013-11-19 21:28 UTC, Emery Hemingway
Details
unbound-anchor.service (unbound-anchor.service,263 bytes, text/plain)
2013-11-19 21:30 UTC, Emery Hemingway
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emery Hemingway 2013-11-19 21:25:11 UTC
Upstream does not supply unbound with systemd units.

Reproducible: Always
Comment 1 Emery Hemingway 2013-11-19 21:25:55 UTC
--- /usr/portage/net-dns/unbound/unbound-1.4.21.ebuild	2013-09-21 02:31:10.000000000 -0400
+++ overlay/net-dns/unbound/unbound-1.4.21-r1.ebuild	2013-11-19 16:17:25.878156317 -0500
@@ -5,7 +5,7 @@
 EAPI=5
 PYTHON_COMPAT=( python{2_6,2_7} )
 
-inherit eutils flag-o-matic python-single-r1 user
+inherit eutils flag-o-matic python-single-r1 user systemd
 
 DESCRIPTION="A validating, recursive and caching DNS resolver"
 HOMEPAGE="http://unbound.net/"
@@ -91,6 +91,10 @@
 	newinitd "${FILESDIR}"/unbound.initd unbound
 	newconfd "${FILESDIR}"/unbound.confd unbound
 
+	systemd_dounit "${FILESDIR}"/unbound.service
+	systemd_newunit "${FILESDIR}"/unbound_.service "unbound@.service"
+	systemd_dounit "${FILESDIR}"/unbound-anchor.service
+
 	dodoc doc/{README,CREDITS,TODO,Changelog,FEATURES}
 
 	# bug #315519
Comment 2 Emery Hemingway 2013-11-19 21:27:07 UTC
Created attachment 363596 [details]
unbound.sevice

Systemd unit for unbound with default config file.
Comment 3 Emery Hemingway 2013-11-19 21:28:47 UTC
Created attachment 363598 [details]
unbound_at.sevice

Systemd unit for starting unbound with a specific config file.
Comment 4 Emery Hemingway 2013-11-19 21:30:16 UTC
Created attachment 363600 [details]
unbound-anchor.service

Systemd oneshot unit for updating the DNSSEC anchor file.
Comment 5 Emery Hemingway 2013-11-19 21:32:52 UTC
I made an error in the diff above, unbound@.service should be named unbound_at.sevice rather than unbound_.service.

--- /usr/portage/net-dns/unbound/unbound-1.4.21.ebuild	2013-09-21 02:31:10.000000000 -0400
+++ unbound-1.4.21-r1.ebuild	2013-11-19 16:30:04.912667080 -0500
@@ -5,7 +5,7 @@
 EAPI=5
 PYTHON_COMPAT=( python{2_6,2_7} )
 
-inherit eutils flag-o-matic python-single-r1 user
+inherit eutils flag-o-matic python-single-r1 user systemd
 
 DESCRIPTION="A validating, recursive and caching DNS resolver"
 HOMEPAGE="http://unbound.net/"
@@ -91,6 +91,10 @@
 	newinitd "${FILESDIR}"/unbound.initd unbound
 	newconfd "${FILESDIR}"/unbound.confd unbound
 
+	systemd_dounit "${FILESDIR}"/unbound.service
+	systemd_newunit "${FILESDIR}"/unbound_at.service "unbound@.service"
+	systemd_dounit "${FILESDIR}"/unbound-anchor.service
+
 	dodoc doc/{README,CREDITS,TODO,Changelog,FEATURES}
 
 	# bug #315519
Comment 6 Pacho Ramos gentoo-dev 2013-11-23 08:49:39 UTC
+*unbound-1.4.21-r1 (23 Nov 2013)
+
+  23 Nov 2013; Pacho Ramos <pacho@gentoo.org> +files/unbound-anchor.service,
+  +files/unbound.service, +files/unbound_at.service, +unbound-1.4.21-r1.ebuild:
+  Add unit file (#491712 by Emery Hemingway)
+