Skip to content

How to enable log for lotus daemon service #9367

Answered by Reiers
olinkcloud asked this question in General Q&A
Discussion options

You must be logged in to vote

Edit this file cat /etc/systemd/system/lotus-daemon.service

It should look something like this, example:

[Unit]
Description=Lotus Daemon
After=network-online.target 
Requires=zfs-import.target

[Service]
#User=
Environment=LOTUS_PATH=
Environment=LOTUS_BACKUP_BASE_PATH=
Environment=GOLOG_FILE="/lotus-log/daemon.log" <- log
Environment=GOLOG_LOG_FMT="json" <-
Environment=GOLOG_OUTPUT="file" <-
Environment=FIL_PROOFS_PARAMETER_CACHE=
Environment=FIL_PROOFS_PARENT_CACHE=
Environment=TMPDIR=
ExecStart=/usr/local/bin/lotus daemon
ExecStop=/usr/local/bin/lotus daemon stop
Restart=
RestartSec=
MemoryAccounting=
LimitNOFILE=

[Install]
WantedBy=multi-user.target

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by olinkcloud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #9366 on September 24, 2022 12:01.