blob: 9855687f0397c4b91be0c3ae9d2d36fe5d86fb08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/sbin/openrc-run
command="/usr/bin/telegraf"
command_args="$TELEGRAF_OPTS"
command_background=yes
command_user=telegraf:telegraf
pidfile="/run/$RC_SVCNAME.pid"
extra_started_commands="reload"
depend() {
need net
after firewall
}
reload() {
ebegin "Reloading ${RC_SVCNAME}"
start-stop-daemon --signal HUP --pidfile "${pidfile}"
eend $?
}
|