diff options
Diffstat (limited to 'net-misc/quagga/files/init/ripd')
-rw-r--r-- | net-misc/quagga/files/init/ripd | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/net-misc/quagga/files/init/ripd b/net-misc/quagga/files/init/ripd new file mode 100644 index 000000000000..91b7ac896716 --- /dev/null +++ b/net-misc/quagga/files/init/ripd @@ -0,0 +1,32 @@ +#!/sbin/runscript +# Copyright 1999-2003 DataCore GmbH, Amir Guindehi +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/init/ripd,v 1.1 2004/03/29 12:29:03 amir Exp $ + +depend() { + need net zebra +} + +checkconfig() { + if [ ! -e /etc/quagga/ripd.conf ] ; then + eerror "You need to create /etc/quagga/ripd.conf first." + eerror "An example can be found in /etc/quagga/ripd.conf.sample" + return 1 + fi +} + +start() { + ebegin "Starting ripd" + start-stop-daemon --start --quiet --exec /usr/sbin/ripd \ + -- -d -f /etc/quagga/ripd.conf \ + --pid_file /var/run/quagga/ripd.pid + result=$? + eend $result +} + +stop() { + ebegin "Stopping ripd" + start-stop-daemon --stop --quiet --pidfile /var/run/quagga/ripd.pid + result=$? + eend $result +} |