Browse Source

collectd: add reload and service trigger

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
lilik-openwrt-22.03
Florian Eckert 5 years ago
parent
commit
f4349995e6
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      utils/collectd/files/collectd.init

+ 9
- 0
utils/collectd/files/collectd.init View 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 "$@"
}

Loading…
Cancel
Save