Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置文件支持log吗? #58

Closed
aglent opened this issue Apr 25, 2022 · 2 comments
Closed

配置文件支持log吗? #58

aglent opened this issue Apr 25, 2022 · 2 comments

Comments

@aglent
Copy link

aglent commented Apr 25, 2022

配置文件里只要写上这一段 就无法启动realm
[log]
level = "warn"
output = "/var/log/realm.log"

提示
● realm.service - realm
Loaded: loaded (/etc/systemd/system/realm.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: core-dump) since Mon 2022-04-25 15:39:00 CST; 2s ago
Process: 9710 ExecStart=/etc/realm/realm -c /etc/realm/config.toml (code=dumped, signal=ABRT)
Main PID: 9710 (code=dumped, signal=ABRT)

Apr 25 15:39:00 OLink systemd[1]: realm.service: Main process exited, code=dumped, status=6/ABRT
Apr 25 15:39:00 OLink systemd[1]: realm.service: Failed with result 'core-dump'.

@zephyrchien
Copy link
Collaborator

可能是没有写入 /var/log/realm.log 的权限, 也有可能是整个配置文件格式错了,没法载入配置。

@skyrockgz
Copy link

我也遇到相同的问题,把log那三行去掉就正常那个启动(systemd),单独运行systemd的命令行是正常启动的

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants