diff options
author | Lucian Cristian <lucian.cristian@gmail.com> | 2019-08-15 14:51:29 +0300 |
---|---|---|
committer | Lucian Cristian <lucian.cristian@gmail.com> | 2019-08-22 17:39:04 +0300 |
commit | 8ad22e124eadae50ee684b9b130bbe588826d54d (patch) | |
tree | 7003efb6829fe92b49ab6f7dadb0c28815516f5c /net/bfdd/files/bfdd.init | |
parent | 3a80fa9cb8a5f700b504921679e6d7485a8467f0 (diff) |
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>
Diffstat (limited to 'net/bfdd/files/bfdd.init')
-rw-r--r-- | net/bfdd/files/bfdd.init | 17 |
1 files changed, 17 insertions, 0 deletions
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 +} |