projects
/
feed
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac29330
)
collectd: add reload and service trigger
author
Florian Eckert
<fe@dev.tdt.de>
Fri, 20 Sep 2019 13:46:53 +0000
(15:46 +0200)
committer
Hannu 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
patch
|
blob
|
history
diff --git
a/utils/collectd/files/collectd.init
b/utils/collectd/files/collectd.init
index 89715d4c465b4e3ac4e49f3cd35efbb602774003..89af365c2917ba5b266f96a98cd2f39d620c25a7 100644
(file)
--- a/
utils/collectd/files/collectd.init
+++ b/
utils/collectd/files/collectd.init
@@
-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 "$@"
+}