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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Thu Mar 31 09:48:53 2011 UTC (9 years, 2 months ago) by chainsaw
Branch: MAIN
CVS Tags: HEAD
New upstream release, adds iBGP, multipath support, layer 2 link state detection, IPv6 RAs and many bugfixes. OSPF now supports point-to-multipoint interfaces. Azamat H. Hackimov has provided completely new initscripts and important socket path fixes, closes bugs #338118 and #338188.

(Portage version: 2.1.9.45/cvs/Linux x86_64)

1 chainsaw 1.1 #!/sbin/runscript
2     # Copyright 1999-2011 Gentoo Foundation
3     # Distributed under the terms of the GNU General Public License v2
4     # $Header: $
5    
6     opts="reload"
7    
8     EXE=bird6
9     SOCK="/var/run/${EXE}.ctl"
10    
11     depend() {
12     need net
13     use logger
14     }
15    
16     checkconfig() {
17     if [ ! -f "/etc/${EXE}.conf" ]; then
18     eerror "Please create /etc/${EXE}.conf"
19     return 1
20     fi
21     return 0
22     }
23    
24     start() {
25     checkconfig || return $?
26     ebegin "Starting BIRD"
27     start-stop-daemon --start --exec /usr/sbin/${EXE} -- -c "/etc/${EXE}.conf" -s "${SOCK}"
28     eend $? "Failed to start BIRD"
29     }
30    
31     stop() {
32     ebegin "Stopping BIRD"
33     start-stop-daemon --stop --exec /usr/sbin/${EXE}
34     eend $? "Failed to stop BIRD"
35     }
36    
37     reload() {
38     service_started "${SVCNAME}" || return
39     ebegin "Reloading BIRD"
40     start-stop-daemon --stop --signal HUP --oknodo --exec /usr/sbin/${EXE}
41     eend $? "Failed to reload BIRD"
42     }

  ViewVC Help
Powered by ViewVC 1.1.20