From 8ad22e124eadae50ee684b9b130bbe588826d54d Mon Sep 17 00:00:00 2001 From: Lucian Cristian Date: Thu, 15 Aug 2019 14:51:29 +0300 Subject: 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 --- net/bfdd/files/bfdd.init | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 net/bfdd/files/bfdd.init (limited to 'net/bfdd/files/bfdd.init') diff --git a/net/bfdd/files/bfdd.init b/net/bfdd/files/bfdd.init new file mode 100644 index 000000000..a1889c10f --- /dev/null +++ b/net/bfdd/files/bfdd.init @@ -0,0 +1,17 @@ +#!/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 +} -- cgit v1.2.3