/[gentoo-x86]/net-misc/bird/files/initd-bird-1.1.0
Gentoo

Contents of /net-misc/bird/files/initd-bird-1.1.0

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Aug 24 12:22:41 2009 UTC (10 years, 6 months ago) by chainsaw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
New version that allows more kernel routing tables in IPv6 and contains a core bugfix. Removed old ebuild.
(Portage version: 2.1.6.13/cvs/Linux x86_64)

1 #!/sbin/runscript
2 # Copyright 1999-2009 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header: /var/cvsroot/gentoo-x86/net-misc/bird/files/initd-bird-1.1.0,v 1.1 2009/07/22 12:20:53 chainsaw Exp $
5
6 SOCK=/var/lib/run/bird.ctl
7
8 depend() {
9 need net
10 use logger
11 }
12
13 checkconfig() {
14 if [ ! -f /etc/bird.conf ]; then
15 eerror "Please create /etc/bird.conf"
16 return 1
17 fi
18 return 0
19 }
20
21 start() {
22 checkconfig || return $?
23
24 ebegin "Starting BIRD"
25 /usr/sbin/bird -c /etc/bird.conf -s "${SOCK}"
26 eend $? "Failed to start BIRD"
27 }
28
29 stop() {
30 ebegin "Stopping BIRD"
31 if [ -f "${SOCK}" ]; then
32 echo "down" | /usr/sbin/birdc &>/dev/null
33 eend $? "Failed to stop BIRD"
34 else
35 eend 0
36 fi
37 }

  ViewVC Help
Powered by ViewVC 1.1.20