Browse Source

Merge pull request #10037 from TDT-AG/pr/20190920-collectd

collectd: add reload trigger and logfile plugin definition
lilik-openwrt-22.03
Florian Eckert 5 years ago
committed by GitHub
parent
commit
61423689f9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 1 deletions
  1. +1
    -1
      utils/collectd/Makefile
  2. +9
    -0
      utils/collectd/files/collectd.init
  3. +9
    -0
      utils/collectd/files/usr/share/collectd/plugin/logfile.json

+ 1
- 1
utils/collectd/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=collectd
PKG_VERSION:=5.9.0
PKG_RELEASE:=6
PKG_RELEASE:=7
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://collectd.org/files/ \


+ 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 "$@"
}

+ 9
- 0
utils/collectd/files/usr/share/collectd/plugin/logfile.json View File

@ -0,0 +1,9 @@
{
"string": [
"LogLevel",
"File"
],
"bool": [
"Timestamp"
]
}

Loading…
Cancel
Save