commit
This commit is contained in:
8
telegraf/rootfs/etc/services.d/telegraf/finish
Normal file
8
telegraf/rootfs/etc/services.d/telegraf/finish
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/execlineb -S0
|
||||
# ==============================================================================
|
||||
# Home Assistant Community Add-on: Telegraf
|
||||
# ==============================================================================
|
||||
if -n { s6-test $# -ne 0 }
|
||||
if -n { s6-test ${1} -eq 256 }
|
||||
|
||||
s6-svscanctl -t /var/run/s6/services
|
||||
10
telegraf/rootfs/etc/services.d/telegraf/run
Normal file
10
telegraf/rootfs/etc/services.d/telegraf/run
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# ==============================================================================
|
||||
# Home Assistant Community Add-on: Example
|
||||
# Runs example1 script
|
||||
# ==============================================================================
|
||||
|
||||
|
||||
bashio::log.info "Starting Telegraf"
|
||||
|
||||
exec telegraf
|
||||
Reference in New Issue
Block a user