2019-10-09 03:16:35 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Lotus Daemon
|
2020-05-28 20:12:46 +00:00
|
|
|
After=network-online.target
|
2020-06-04 12:09:01 +00:00
|
|
|
Requires=network-online.target
|
2019-10-09 03:16:35 +00:00
|
|
|
|
|
|
|
[Service]
|
2020-06-04 12:09:01 +00:00
|
|
|
Environment=GOLOG_FILE="/var/log/lotus/daemon.log"
|
2019-10-10 23:59:10 +00:00
|
|
|
Environment=GOLOG_LOG_FMT="json"
|
2020-05-28 20:12:46 +00:00
|
|
|
ExecStart=/usr/local/bin/lotus daemon
|
|
|
|
Restart=always
|
2020-06-04 12:09:01 +00:00
|
|
|
RestartSec=10
|
2020-05-28 20:12:46 +00:00
|
|
|
|
2024-02-22 18:33:06 +00:00
|
|
|
# If running a node in a shared, memory constrained environment, enable MemoryAccounting to put
|
|
|
|
# pressure on allocations. This will slow the process down but keep it approximately within the
|
|
|
|
# limit specified.
|
|
|
|
#MemoryAccounting=true
|
|
|
|
#MemoryHigh=64G
|
|
|
|
#MemoryMax=96G
|
|
|
|
|
2020-05-27 21:12:45 +00:00
|
|
|
LimitNOFILE=8192:10240
|
2019-10-09 03:16:35 +00:00
|
|
|
|
|
|
|
[Install]
|
2020-07-30 00:19:40 +00:00
|
|
|
WantedBy=multi-user.target
|