collectd: add reload and service trigger
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 20 Sep 2019 13:46:53 +0000 (15:46 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Sat, 30 Nov 2019 17:15:12 +0000 (19:15 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry-picked for 19.07)
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
utils/collectd/files/collectd.init

index 89715d4c465b4e3ac4e49f3cd35efbb602774003..89af365c2917ba5b266f96a98cd2f39d620c25a7 100644 (file)
@@ -333,6 +333,11 @@ process_config() {
        config_foreach process_plugins plugin
 }
 
+service_triggers()
+{
+       procd_add_reload_trigger "collectd"
+}
+
 start_service() {
        process_config
 
@@ -345,3 +350,7 @@ start_service() {
        procd_set_param respawn
        procd_close_instance
 }
+
+reload_service() {
+       restart "$@"
+}