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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Aug 13 10:54:49 2012 UTC (7 years, 6 months ago) by chainsaw
Branch: MAIN
CVS Tags: HEAD
Version bump, as requested by Moyaze Shivji in the LINX engineering department. Rediffed "almost clean" build system patch, addressed OpenRC deprecation warning in init scripts.

(Portage version: 2.1.11.10/cvs/Linux x86_64)

1 #!/sbin/runscript
2 # Copyright 1999-2012 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header: $
5
6 extra_started_commands="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 ebegin "Reloading BIRD"
39 start-stop-daemon --stop --signal HUP --oknodo --exec /usr/sbin/${EXE}
40 eend $? "Failed to reload BIRD"
41 }

  ViewVC Help
Powered by ViewVC 1.1.20