1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-18 21:33:53 +02:00
openwrt-packages/net/bfdd/files/bfdd.init
Lucian Cristian 8ad22e124e bfdd: add BFD package
Bidirectional Forwarding Detection (BFD) is a network protocol that is used to
detect faults between two forwarding engines connected by a link.

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2019-08-22 17:39:04 +03:00

18 lines
304 B
Bash

#!/bin/sh /etc/rc.common
START=99
STOP=10
USE_PROCD=1
PROG="/usr/sbin/bfdd"
CONF="/etc/bfdd/bfdd.json"
start_service() {
procd_open_instance
procd_set_param command $PROG -c $CONF
procd_set_param stdout 1
procd_set_param stderr 1
procd_set_param respawn
procd_close_instance
}