1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-17 05:05:14 +03:00
aports/community/openbgpd/openbgpd.initd
2024-09-01 01:56:38 +00:00

19 lines
331 B
Bash

#!/sbin/openrc-run
name=$RC_SVCNAME
description="Free implementation of the Border Gateway Protocol, Version 4"
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 $?
}