loggie icon indicating copy to clipboard operation
loggie copied to clipboard

主机部署systemd无法启动

Open liu-yfeng opened this issue 2 years ago • 2 comments

主机部署的时候,无法用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

liu-yfeng avatar May 17 '23 09:05 liu-yfeng

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

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

ethfoo avatar May 18 '23 07:05 ethfoo

重新编译后可以了,感谢

liu-yfeng avatar May 19 '23 02:05 liu-yfeng