aboutsummaryrefslogtreecommitdiffstats
path: root/main/quagga/ripngd.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-01-07 07:59:53 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-01-07 08:56:41 +0000
commita96582b446211fcc07725f3b19240f01863b0354 (patch)
tree3a8c2a7ed0ee328c6fd986d51240fec30ff5127f /main/quagga/ripngd.initd
parentac131f247b8c338fb3925ed1222c2666419fca60 (diff)
downloadaports-a96582b446211fcc07725f3b19240f01863b0354.tar.bz2
aports-a96582b446211fcc07725f3b19240f01863b0354.tar.xz
main/quagga: create /var/run/quagga at startup
and refactor the scripts while at it ref #2294
Diffstat (limited to 'main/quagga/ripngd.initd')
-rw-r--r--main/quagga/ripngd.initd34
1 files changed, 0 insertions, 34 deletions
diff --git a/main/quagga/ripngd.initd b/main/quagga/ripngd.initd
deleted file mode 100644
index 00820e5250..0000000000
--- a/main/quagga/ripngd.initd
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/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/ripngd.init,v 1.1 2005/09/14 11:11:08 mrness Exp $
-
-depend() {
- need net zebra
- after firewall
-}
-
-checkconfig() {
- if [ ! -e /etc/quagga/ripngd.conf ] ; then
- eerror "You need to create /etc/quagga/ripngd.conf first."
- eerror "An example can be found in /etc/quagga/samples/ripngd.conf.sample"
- return 1
- fi
-}
-
-start() {
- checkconfig || return 1
- ebegin "Starting ripngd"
- start-stop-daemon --start --quiet --exec /usr/sbin/ripngd \
- -- -d -f /etc/quagga/ripngd.conf \
- --pid_file /var/run/quagga/ripngd.pid
- result=$?
- eend $result
-}
-
-stop() {
- ebegin "Stopping ripngd"
- start-stop-daemon --stop --quiet --pidfile /var/run/quagga/ripngd.pid
- result=$?
- eend $result
-}