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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon May 2 12:05:37 2011 UTC (9 years, 2 months ago) by chainsaw
Branch: MAIN
CVS Tags: HEAD
Improved support for multi-exit discriminator (MED) through the MED metric attribute. Adds kernel route attributes krt_prefsrc & krt_realm. It is now possible to use constants from /etc/iproute2/rt_* files. Several minor bugfixes.

(Portage version: 2.1.9.46/cvs/Linux x86_64)

1 #!/sbin/runscript
2 # Copyright 1999-2011 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-v6-bird-1.3.0,v 1.1 2011/03/31 09:48:53 chainsaw Exp $
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