/[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.1 - (hide annotations) (download)
Mon Aug 24 12:22:41 2009 UTC (10 years, 7 months ago) by chainsaw
Branch: MAIN
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 chainsaw 1.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.1,v 1.1 2009/08/20 16:12:18 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