vectordotdev/vector

Want to add background mode option

Open

#4,036 opened on 2020年9月21日

GitHub で見る
 (3 comments) (0 reactions) (0 assignees)Rust (21,837 stars) (2,126 forks)batch import
domain: administrationgood first issueplatform: rpm

説明

Hello. https://github.com/timberio/vector/pull/4035 It is also related to this pull req, init script doesn't work as expected.

[root@881a6e4cb012 ~]# service vector start
Starting vector: Sep 21 12:06:35.753  INFO vector: Log level "info" is enabled.
Sep 21 12:06:35.758  INFO vector: Loading configs. path=["/etc/vector/vector.toml"]
Sep 21 12:06:35.760  INFO vector: Vector is starting. version="0.10.0" git_version="v0.9.0-377-g0f0311a" released="Wed, 22 Jul 2020 20:01:29 +0000" arch="x86_64"
Sep 21 12:06:35.770  INFO vector::topology: Running healthchecks.
Sep 21 12:06:35.770  INFO vector::topology: Starting source "test"
Sep 21 12:06:35.771  INFO vector::topology: Starting sink "new_relic_logs"
Sep 21 12:06:35.771  INFO vector::topology::builder: Healthcheck: Passed.
Sep 21 12:06:35.771  INFO source{name=test type=file}: vector::sources::file: Starting file server. include=["/var/*/*.log"] exclude=[]
Sep 21 12:06:35.772  WARN source{name=test type=file}:file_server: file_source::file_server: Ignoring file smaller than fingerprint_bytes file="/var/log/yum.log"
Sep 21 12:06:35.772  INFO source{name=test type=file}:file_server: file_source::file_server: Found file to watch. path="/var/test2/test.log" file_position=633
Sep 21 12:06:35.772  INFO source{name=test type=file}:file_server: file_source::file_server: Found file to watch. path="/var/log/zzz.log" file_position=290
Sep 21 12:06:35.772  INFO source{name=test type=file}:file_server: file_source::file_server: Found file to watch. path="/var/log/yyy.log" file_position=466
Sep 21 12:06:35.772  INFO source{name=test type=file}:file_server: file_source::file_server: Found file to watch. path="/var/log/xxx.log" file_position=899

The function daemon in init script should expect the given command to start in background mode, but the vector command only works in foreground mode, so it doesn't seem to work as expected.

It seems that the vector command does not have an option to switch background / foreground, so it would be helpful if you could add it.

コントリビューターガイド