packages/utils/telegraf/files/etc/init.d/telegraf
Jonathan Pagel 078a71d3d0 telegraf: Move config file to /etc/telegraf.conf because
/etc/config is the default uci folder. Also marking it as
configuration file prevents overwriting it on updates.

Signed-off-by: Jonathan Pagel <jonny_tischbein@systemli.org>
2021-11-01 12:04:36 +01:00

14 lines
258 B
Bash
Executable file

#!/bin/sh /etc/rc.common
USE_PROCD=1
START=95
STOP=01
start_service() {
procd_open_instance
procd_set_param command /usr/bin/telegraf --config /etc/telegraf.conf
procd_set_param stdout 1
procd_set_param stderr 1
procd_close_instance
}