SwordArMor-gentoo-overlay/net-misc/openbgpd/files/openbgpd-init.d
Alarig Le Lay 4f84a167c0
net-misc/openbgpd: unnecessary executable bit files/openbgpd-init.d
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
2020-03-25 08:35:40 +01:00

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 $?
}