mirror of
https://github.com/openwrt/packages.git
synced 2026-10-13 01:27:31 +04:00
A init script allows running fluent-bit as a system service. Signed-off-by: Sebastian Hamann <code@ares-macrotechnology.com>
13 lines
274 B
Bash
Executable File
13 lines
274 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
START=99
|
|
|
|
USE_PROCD=1
|
|
|
|
start_service() {
|
|
procd_open_instance
|
|
procd_set_param command fluent-bit --supervisor -c /etc/fluent-bit/fluent-bit.yaml
|
|
procd_set_param file /etc/fluent-bit/fluent-bit.yaml
|
|
procd_set_param respawn
|
|
procd_close_instance
|
|
}
|