summaryrefslogtreecommitdiffstats
path: root/main/quagga/bgpd.initd
blob: 4607a2ad13c4f9e2fd24a3e0232cbe3f2943a8be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/sbin/runscript

piddir=/var/run/quagga
pidfile=$piddir/$SVCNAME.pid
command=/usr/sbin/$SVCNAME
command_args="-d -f /etc/quagga/$SVCNAME.conf --pid_file $pidfile"

depend() {
	need net zebra
	after firewall opennhrp
}

start_pre() {
	if ! [ -e /etc/quagga/$SVCNAME.conf ] ; then
		eerror "You need to create /etc/quagga/$SVCNAME.conf first."
		eerror "An example can be found in /usr/share/doc/quagga/$SVCNAME.conf.sample"
		eerror "from quagga-doc package"
		return 1
	fi
	checkpath --owner quagga:quagga --directory $piddir
}