From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SkWHB-0002T9-Pr for garchives@archives.gentoo.org; Fri, 29 Jun 2012 08:10:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6C724E06B7; Fri, 29 Jun 2012 08:09:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 3E25FE06B7 for ; Fri, 29 Jun 2012 08:09:54 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A17C31B4024 for ; Fri, 29 Jun 2012 08:09:53 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2275) id 54EE72004B; Fri, 29 Jun 2012 08:09:52 +0000 (UTC) From: "Michael Weber (xmw)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, xmw@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in net-misc/radvd/files: radvd-1.9.1.init X-VCS-Repository: gentoo-x86 X-VCS-Files: radvd-1.9.1.init X-VCS-Directories: net-misc/radvd/files X-VCS-Committer: xmw X-VCS-Committer-Name: Michael Weber Content-Type: text/plain; charset=utf8 Message-Id: <20120629080952.54EE72004B@flycatcher.gentoo.org> Date: Fri, 29 Jun 2012 08:09:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: d08614f2-5fd9-467b-8e8e-d00a56e0b273 X-Archives-Hash: 289198fc1234874b13f678a06eb6f536 xmw 12/06/29 08:09:52 Added: radvd-1.9.1.init Log: Version bump (thanks euscan), improve config-check in initd =20 (Portage version: 2.1.11.3/cvs/Linux x86_64) Revision Changes Path 1.1 net-misc/radvd/files/radvd-1.9.1.init file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/radvd/fil= es/radvd-1.9.1.init?rev=3D1.1&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/radvd/fil= es/radvd-1.9.1.init?rev=3D1.1&content-type=3Dtext/plain Index: radvd-1.9.1.init =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D #!/sbin/runscript # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/files/radvd-1.9.1.init,= v 1.1 2012/06/29 08:09:52 xmw Exp $ CONFIGFILE=3D/etc/radvd.conf PIDFILE=3D/var/run/radvd/radvd.pid SYSCTL_FORWARD=3Dnet.ipv6.conf.all.forwarding extra_started_commands=3D"reload" depend() { need net } checkconfig() { if [ ! -f "${CONFIGFILE}" ]; then eerror "Configuration file ${CONFIGFILE} not found" return 1 fi if ! /usr/sbin/radvd -c -C "${CONFIGFILE}" ; then eerror "Configuration file ${CONFIGFILE} failed test" return 1 fi checkpath -d -o radvd:radvd ${PIDFILE%/*} } start() { checkconfig || return 1 if [ "${FORWARD}" !=3D "no" ]; then ebegin "Enabling IPv6 forwarding" sysctl -w "${SYSCTL_FORWARD}=3D1" >/dev/null eend $? fi ebegin "Starting IPv6 Router Advertisement Daemon" start-stop-daemon --start --exec /usr/sbin/radvd \ --pidfile "${PIDFILE}" \ -- -C "${CONFIGFILE}" -p "${PIDFILE}" -u radvd ${OPTIONS} eend $? } stop() { ebegin "Stopping IPv6 Router Advertisement Daemon" start-stop-daemon --stop --exec /usr/sbin/radvd --pidfile "${PIDFILE}" eend $? if [ "${FORWARD}" !=3D "no" ]; then ebegin "Disabling IPv6 forwarding" sysctl -w "${SYSCTL_FORWARD}=3D0" > /dev/null eend $? fi } reload() { checkconfig || return 1 if [ "${FORWARD}" !=3D "no" ]; then ebegin "Enabling IPv6 forwarding" sysctl -w "${SYSCTL_FORWARD}=3D1" >/dev/null eend $? fi ebegin "Reloading IPv6 Router Advertisement Daemon" start-stop-daemon --signal HUP \ --exec /usr/sbin/radvd --pidfile "${PIDFILE}" eend $? }