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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Apr 12 11:58:59 2010 UTC (10 years, 3 months ago) by chainsaw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
New upstream release. Note that the V6 version is not functional, I have contacted upstream and will provide an updated ebuild when possible.
(Portage version: 2.1.8.3/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.6,v 1.1 2009/11/23 14:35:03 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