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

Contents of /net-misc/bird/files/initd-v4-bird-1.1.2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Nov 23 14:35:03 2009 UTC (10 years, 7 months ago) by chainsaw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump, implements RFC 5004 (prefer older external routes) as well as several other minor features. Some minor bugfixes as well. Removed older ebuilds.
(Portage version: 2.1.7.6/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.2,v 1.1 2009/08/24 12:22:41 chainsaw Exp $
5
6 EXE=bird
7 CLI=birdc
8 SOCK="/var/lib/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