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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Nov 7 10:57:30 2011 UTC (8 years, 3 months ago) by chainsaw
Branch: MAIN
CVS Tags: HEAD
Version bump, as requested by Moyaze Shivji of the LINX engineering department.

(Portage version: 2.1.10.32/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-v4-bird-1.3.1,v 1.1 2011/05/02 12:05:37 chainsaw Exp $
5
6 opts="reload"
7
8 EXE=bird
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