collectd: log stderr output
Collectd without log type plugin loaded will write log lines to stderr. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
parent
b851788523
commit
02840f4c2a
1 changed files with 4 additions and 6 deletions
|
@ -199,16 +199,14 @@ process_config() {
|
||||||
}
|
}
|
||||||
|
|
||||||
start_service() {
|
start_service() {
|
||||||
|
process_config
|
||||||
|
|
||||||
procd_open_instance
|
procd_open_instance
|
||||||
procd_set_param command /usr/sbin/collectd
|
procd_set_param command /usr/sbin/collectd
|
||||||
procd_append_param command -C "$COLLECTD_CONF"
|
procd_append_param command -C "$COLLECTD_CONF"
|
||||||
procd_append_param command -f # don't daemonize, procd will handle that for us
|
procd_append_param command -f # don't daemonize
|
||||||
procd_set_param nice "$NICEPRIO"
|
procd_set_param nice "$NICEPRIO"
|
||||||
|
procd_set_param stderr 1
|
||||||
process_config
|
|
||||||
|
|
||||||
# set auto respawn behavior
|
|
||||||
procd_set_param respawn
|
procd_set_param respawn
|
||||||
procd_close_instance
|
procd_close_instance
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue