collectd: add reload and service trigger
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
2b221b5b06
commit
f4349995e6
1 changed files with 9 additions and 0 deletions
|
@ -333,6 +333,11 @@ process_config() {
|
||||||
config_foreach process_plugins plugin
|
config_foreach process_plugins plugin
|
||||||
}
|
}
|
||||||
|
|
||||||
|
service_triggers()
|
||||||
|
{
|
||||||
|
procd_add_reload_trigger "collectd"
|
||||||
|
}
|
||||||
|
|
||||||
start_service() {
|
start_service() {
|
||||||
process_config
|
process_config
|
||||||
|
|
||||||
|
@ -345,3 +350,7 @@ start_service() {
|
||||||
procd_set_param respawn
|
procd_set_param respawn
|
||||||
procd_close_instance
|
procd_close_instance
|
||||||
}
|
}
|
||||||
|
|
||||||
|
reload_service() {
|
||||||
|
restart "$@"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue