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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
19 additions and
1 deletions
-
utils/collectd/Makefile
-
utils/collectd/files/collectd.init
-
utils/collectd/files/usr/share/collectd/plugin/logfile.json
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk |
|
|
|
|
|
|
|
|
PKG_NAME:=collectd |
|
|
PKG_NAME:=collectd |
|
|
PKG_VERSION:=5.9.0 |
|
|
PKG_VERSION:=5.9.0 |
|
|
PKG_RELEASE:=6 |
|
|
|
|
|
|
|
|
PKG_RELEASE:=7 |
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 |
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 |
|
|
PKG_SOURCE_URL:=https://collectd.org/files/ \
|
|
|
PKG_SOURCE_URL:=https://collectd.org/files/ \
|
|
|
|
@ -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 "$@" |
|
|
|
|
|
} |
|
@ -0,0 +1,9 @@ |
|
|
|
|
|
{ |
|
|
|
|
|
"string": [ |
|
|
|
|
|
"LogLevel", |
|
|
|
|
|
"File" |
|
|
|
|
|
], |
|
|
|
|
|
"bool": [ |
|
|
|
|
|
"Timestamp" |
|
|
|
|
|
] |
|
|
|
|
|
} |