/[gentoo-x86]/net-misc/bird/files/initrd-bird-1.0.11
Gentoo

Contents of /net-misc/bird/files/initrd-bird-1.0.11

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Sep 1 12:43:04 2007 UTC (12 years, 5 months ago) by chainsaw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove net-misc/bird as per last rites announcement.

1 #!/sbin/runscript
2 # Copyright 1999-2006 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header: /var/cvsroot/gentoo-x86/net-misc/bird/files/initrd-bird-1.0.11,v 1.1 2006/07/10 09:20:42 chainsaw Exp $
5
6 SOCK=/var/lib/run/bird.ctl
7
8 depend() {
9 need net
10 use logger
11 }
12
13 checkconfig() {
14 if [ ! -f /etc/bird.conf ]; then
15 eerror "Please create /etc/bird.conf"
16 return 1
17 fi
18 return 0
19 }
20
21 start() {
22 checkconfig || return $?
23
24 ebegin "Starting BIRD"
25 /usr/sbin/bird -c /etc/bird.conf -s "${SOCK}"
26 eend $? "Failed to start BIRD"
27 }
28
29 stop() {
30 ebegin "Stopping BIRD"
31 if [ -f "${SOCK}" ]; then
32 echo "down" | /usr/sbin/birdc &>/dev/null
33 eend $? "Failed to stop BIRD"
34 else
35 eend 0
36 fi
37 }
38
39 reload() {
40 ebegin "Reloading BIRD configuration"
41
42 eend $? "Failed to reload BIRD configuration"
43 }

  ViewVC Help
Powered by ViewVC 1.1.20