iopsys-feed/fluent-bit/files/fluent-bit.init
Rahul Thakur 4f9dae3d0e fluent-bit: make functional
* make the fluent-bit functional on target with iowrt
* resolve crash with file output plugin
* setup init file
* setup default conf file - no logging
2024-07-15 12:51:45 +00:00

21 lines
330 B
Bash

#!/bin/sh /etc/rc.common
START=12
STOP=89
USE_PROCD=1
PROG=/usr/sbin/fluent-bit
CONF=/etc/fluent-bit/fluent-bit.conf
. /lib/functions.sh
start_service() {
procd_open_instance
procd_set_param command $PROG -c $CONF
procd_set_param respawn
procd_close_instance
}
service_triggers() {
procd_add_reload_trigger fluent-bit
}