Alex Denes
8df9fdc4ab
- More templating and inheritance - New commands + rx_replace + rx_install + rx_cpkgdir - More transparency with secrets being sourced as variables and replaced - Modularization of configs + telegraf + nginx (partial) + fastd + wireguard + unbound - Split of unbound configurations and bind zones - Bumping of key versions (rolling keys) + ZSK/KSK + OpenDKIM - Relaxed permission defaults and other smaller tweaks...
23 lines
520 B
Plaintext
23 lines
520 B
Plaintext
#!/sbin/openrc-run
|
|
|
|
: ${TELEGRAF_CONFIG:=/etc/telegraf.conf}
|
|
: ${TELEGRAF_CONFIG_DIR:=/etc/telegraf.d/}
|
|
|
|
command="/usr/bin/telegraf"
|
|
command_args="${TELEGRAF_OPTS:---config $TELEGRAF_CONFIG --config-directory $TELEGRAF_CONFIG_DIR}"
|
|
command_background=yes
|
|
command_user="${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 $?
|
|
}
|