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

Contents of /net-misc/bird/files/initd-v6-bird-1.1.3

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Oct 2 11:52:07 2009 UTC (10 years, 10 months ago) by chainsaw
Branch: MAIN
Changes since 1.1: +3 -3 lines
Version bump with minor bugfixes. Also adds passive BGP support.
(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-v4-bird-1.1.3,v 1.1 2009/09/11 14:01:51 chainsaw Exp $
5
6 EXE=bird
7 CLI=birdc
8 SOCK="/var/run/${EXE}.ctl"
9
10 depend() {
11 need net
12 use logger
13 }
14
15 checkconfig() {
16 if [ ! -f "/etc/${EXE}.conf" ]; then
17 eerror "Please create /etc/${EXE}.conf"
18 return 1
19 fi
20 return 0
21 }
22
23 start() {
24 checkconfig || return $?
25
26 ebegin "Starting BIRD"
27 "/usr/sbin/${EXE}" -c "/etc/${EXE}.conf" -s "${SOCK}"
28 eend $? "Failed to start BIRD"
29 }
30
31 stop() {
32 ebegin "Stopping BIRD"
33 if [ -f "${SOCK}" ]; then
34 echo "down" | "/usr/sbin/${CLI}" -s "${SOCK}" &>/dev/null
35 eend $? "Failed to stop BIRD"
36 else
37 eend 0
38 fi
39 }

  ViewVC Help
Powered by ViewVC 1.1.20