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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Mon Aug 23 11:29:16 2010 UTC (9 years, 7 months ago) by chainsaw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Clean up old ebuilds. Actually install a V6 init script and use the correct name.
(Portage version: 2.1.8.3/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 chainsaw 1.2 # $Header: /var/cvsroot/gentoo-x86/net-misc/bird/files/initd-v4-bird-1.2.2,v 1.1 2010/04/12 11:58:59 chainsaw Exp $
5 chainsaw 1.1
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