SwordArMor-gentoo-overlay/net-misc/openbgpd/files/openbgpd-init.d
Alarig Le Lay 98b8e02148
net-misc/openbgpd: git version
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr
2020-03-21 16:42:06 +01:00

23 lines
414 B
D
Executable file

#!/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 $?
}