blob: 40724a25bd0c5b573c71ea02a5ae7d8b952be788 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/sbin/openrc-run
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
name="bgpd daemon"
description="OpenBGPD is a free implementation of BGPv4"
command=/usr/sbin/bgpd
command_args="${BGPD_OPTS}"
extra_started_commands="reload"
depend() {
use net
use logger
}
reload() {
${command} -n || return 1
ebegin "Reloading bgpd"
/usr/sbin/bgpctl reload
eend $?
}
|