loggie-io / loggie

A lightweight, cloud-native data transfer agent and aggregator
https://loggie-io.github.io/docs-en/
Apache License 2.0
1.26k stars 165 forks source link

主机部署systemd无法启动 #538

Open liu-yfeng opened 1 year ago

liu-yfeng commented 1 year ago

主机部署的时候,无法用systemd启动 image

image 但是可以直接从命令行启动

loggie.service 文件

[Unit]
Description=Loggie
Documentation=https://loggie-io.github.io/docs/getting-started/install/node/

[Service]
#Type=forking
#WorkingDirectory=/usr/local/loggie
MemoryMax=200M
ExecStart=/usr/local/loggie/loggie -config.system=/usr/local/loggie/loggie.yaml -config.pipeline=/usr/local/loggie/pipelines.yaml
Restart=always

[Install]
WantedBy=multi-user.target
ethfoo commented 1 year ago

参考一下这个,大概率cgo导致的, https://loggie-io.github.io/docs/user-guide/troubleshot/problems/#_1

建议你使用最新main分支,用make build-in-badger构建非cgo的二进制。

liu-yfeng commented 1 year ago

重新编译后可以了,感谢