prometheus-statsd-exporter: add a config reload trigger
authorAndre Heider <a.heider@gmail.com>
Thu, 3 Jan 2019 08:09:42 +0000 (09:09 +0100)
committerAndre Heider <a.heider@gmail.com>
Wed, 9 Jan 2019 08:26:31 +0000 (09:26 +0100)
Signed-off-by: Andre Heider <a.heider@gmail.com>
utils/prometheus-statsd-exporter/files/etc/init.d/prometheus-statsd-exporter

index ce228dc1c3a4a91c6dda7d9680aab35193d992df..73e6a77ca1503988916ca884e5ec28d8a503623e 100755 (executable)
@@ -86,6 +86,8 @@ service_triggers()
 {
        local web_interface statsd_udp_interface statsd_tcp_interface
 
+       procd_add_reload_trigger "prometheus-statsd-exporter"
+
        config_load "prometheus-statsd-exporter"
        config_get web_interface main web_interface "loopback"
        config_get statsd_udp_interface main statsd_udp_interface "loopback"