Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
23 lines
414 B
D
23 lines
414 B
D
#!/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 $?
|
|
}
|