public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-misc/radvd/files: radvd-1.9.1.init
@ 2012-06-29  8:09 Michael Weber (xmw)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Weber (xmw) @ 2012-06-29  8:09 UTC (permalink / raw
  To: gentoo-commits

xmw         12/06/29 08:09:52

  Added:                radvd-1.9.1.init
  Log:
  Version bump (thanks euscan), improve config-check in initd
  
  (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/files/radvd-1.9.1.init?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/radvd/files/radvd-1.9.1.init?rev=1.1&content-type=text/plain

Index: radvd-1.9.1.init
===================================================================
#!/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=/etc/radvd.conf
PIDFILE=/var/run/radvd/radvd.pid
SYSCTL_FORWARD=net.ipv6.conf.all.forwarding

extra_started_commands="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}" != "no" ]; then
		ebegin "Enabling IPv6 forwarding"
		sysctl -w "${SYSCTL_FORWARD}=1" >/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}" != "no" ]; then
		ebegin "Disabling IPv6 forwarding"
		sysctl -w "${SYSCTL_FORWARD}=0" > /dev/null
		eend $?
	fi
}

reload() {
	checkconfig || return 1

	if [ "${FORWARD}" != "no" ]; then
		ebegin "Enabling IPv6 forwarding"
		sysctl -w "${SYSCTL_FORWARD}=1" >/dev/null
		eend $?
	fi

	ebegin "Reloading IPv6 Router Advertisement Daemon"
	start-stop-daemon --signal HUP \
		--exec /usr/sbin/radvd --pidfile "${PIDFILE}"
	eend $?
}






^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in net-misc/radvd/files: radvd-1.9.1.init
@ 2014-02-18  3:33 Matt Thode (prometheanfire)
  0 siblings, 0 replies; 2+ messages in thread
From: Matt Thode (prometheanfire) @ 2014-02-18  3:33 UTC (permalink / raw
  To: gentoo-commits

prometheanfire    14/02/18 03:33:37

  Modified:             radvd-1.9.1.init
  Log:
  fixing bug 442608
  
  (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3)

Revision  Changes    Path
1.2                  net-misc/radvd/files/radvd-1.9.1.init

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/radvd/files/radvd-1.9.1.init?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/radvd/files/radvd-1.9.1.init?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/radvd/files/radvd-1.9.1.init?r1=1.1&r2=1.2

Index: radvd-1.9.1.init
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/radvd/files/radvd-1.9.1.init,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- radvd-1.9.1.init	29 Jun 2012 08:09:52 -0000	1.1
+++ radvd-1.9.1.init	18 Feb 2014 03:33:37 -0000	1.2
@@ -1,7 +1,7 @@
 #!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2014 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 $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/files/radvd-1.9.1.init,v 1.2 2014/02/18 03:33:37 prometheanfire Exp $
 
 CONFIGFILE=/etc/radvd.conf
 PIDFILE=/var/run/radvd/radvd.pid
@@ -28,14 +28,14 @@
 }
 
 start() {
-	checkconfig || return 1
-
 	if [ "${FORWARD}" != "no" ]; then
 		ebegin "Enabling IPv6 forwarding"
 		sysctl -w "${SYSCTL_FORWARD}=1" >/dev/null
 		eend $?
 	fi
 
+	checkconfig || return 1
+
 	ebegin "Starting IPv6 Router Advertisement Daemon"
 	start-stop-daemon --start --exec /usr/sbin/radvd \
 		--pidfile "${PIDFILE}" \
@@ -56,14 +56,14 @@
 }
 
 reload() {
-	checkconfig || return 1
-
 	if [ "${FORWARD}" != "no" ]; then
 		ebegin "Enabling IPv6 forwarding"
 		sysctl -w "${SYSCTL_FORWARD}=1" >/dev/null
 		eend $?
 	fi
 
+	checkconfig || return 1
+
 	ebegin "Reloading IPv6 Router Advertisement Daemon"
 	start-stop-daemon --signal HUP \
 		--exec /usr/sbin/radvd --pidfile "${PIDFILE}"





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-18  3:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-29  8:09 [gentoo-commits] gentoo-x86 commit in net-misc/radvd/files: radvd-1.9.1.init Michael Weber (xmw)
  -- strict thread matches above, loose matches on Subject: below --
2014-02-18  3:33 Matt Thode (prometheanfire)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox