Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Matsuu Takuto (matsuu)" <matsuu@g.o>
Subject: gentoo-x86 commit in net-dns/unbound/files: unbound.initd unbound.confd
Date: Sun, 22 Nov 2009 16:57:33 +0000
matsuu      09/11/22 16:57:33

  Added:                unbound.initd unbound.confd
  Log:
  Initial import, bug #223103.
  (Portage version: 2.1.7.5/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  net-dns/unbound/files/unbound.initd

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/unbound/files/unbound.initd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/unbound/files/unbound.initd?rev=1.1&content-type=text/plain

Index: unbound.initd
===================================================================
#!/sbin/runscript
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/unbound/files/unbound.initd,v 1.1 2009/11/22 16:57:33 matsuu Exp $

opts="${opts} checkconfig reload"

UNBOUND_BINARY=${UNBOUND_BINARY:-/usr/sbin/unbound}
UNBOUND_CHECKCONF=${UNBOUND_CHECKCONF:-/usr/sbin/unbound-checkconf}
UNBOUND_CONFFILE=${UNBOUND_CONFFILE:-/etc/unbound/${SVCNAME}.conf}

depend() {
	need net
	use logger
	provide dns
	after auth-dns
}

checkconfig() {
	UNBOUND_PIDFILE=$("${UNBOUND_CHECKCONF}" -o pidfile "${UNBOUND_CONFFILE}")
	return $?
}

start() {
	checkconfig || return $?
	ebegin "Starting unbound"
	start-stop-daemon --start --pidfile "${UNBOUND_PIDFILE}" \
		--exec "${UNBOUND_BINARY}" -- -c "${UNBOUND_CONFFILE}"
	eend $?
}

stop() {
	checkconfig || return $?
	ebegin "Stopping unbound"
	start-stop-daemon --stop --pidfile "${UNBOUND_PIDFILE}"
	eend $?
}

restart() {
	checkconfig || return $?
	svc_stop
	svc_start
}

reload() {
	checkconfig || return $?
	ebegin "Reloading unbound"
	start-stop-daemon --stop --pidfile "${UNBOUND_PIDFILE}" \
		--signal HUP --oknodo
	eend $?
}



1.1                  net-dns/unbound/files/unbound.confd

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/unbound/files/unbound.confd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/unbound/files/unbound.confd?rev=1.1&content-type=text/plain

Index: unbound.confd
===================================================================
# Settings should normally not need any changes.

# Location of the unbound configuration file. Leave empty for the default.
#UNBOUND_CONFFILE="/etc/unbound/unbound.conf"





Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in app-accessibility/gnome-mousetrap: - New directory
Next by thread:
gentoo-x86 commit in net-dns/unbound: unbound-1.3.4.ebuild metadata.xml ChangeLog
Previous by date:
gentoo-x86 commit in app-accessibility/gnome-mousetrap: - New directory
Next by date:
gentoo-x86 commit in net-dns/unbound: unbound-1.3.4.ebuild metadata.xml ChangeLog


Updated Jun 26, 2012

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.