diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2019-08-09 03:10:08 +0000 |
---|---|---|
committer | Yousong Zhou <yszhou4tech@gmail.com> | 2019-08-10 09:52:22 +0800 |
commit | 02840f4c2a3465996cd586bf50f3041c2238cd78 (patch) | |
tree | 4e56bb16cf0572b4220a322949bd51b15b5e8753 /utils | |
parent | b8517885239118775bdeff7620b6551335104f18 (diff) |
collectd: log stderr output
Collectd without log type plugin loaded will write log lines to stderr.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/collectd/files/collectd.init | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/utils/collectd/files/collectd.init b/utils/collectd/files/collectd.init index 7b9c4623e..71993f601 100644 --- a/utils/collectd/files/collectd.init +++ b/utils/collectd/files/collectd.init @@ -199,16 +199,14 @@ process_config() { } start_service() { + process_config + procd_open_instance procd_set_param command /usr/sbin/collectd 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" - - process_config - - # set auto respawn behavior + procd_set_param stderr 1 procd_set_param respawn procd_close_instance } - |