install service files in suitable path; tweak lotus svc restarting
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
[Unit]
|
||||
Description=Lotus Daemon
|
||||
After=network.target
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/lotus daemon
|
||||
Environment=GOLOG_FILE="/var/log/lotus-daemon"
|
||||
Environment=GOLOG_LOG_FMT="json"
|
||||
ExecStart=/usr/local/bin/lotus daemon
|
||||
#ExecStop=/bin/sh -a -c /root/capture_lotus_heap.sh
|
||||
Restart=always
|
||||
RestartSec=30
|
||||
|
||||
MemoryAccounting=true
|
||||
MemoryHigh=8G
|
||||
MemoryMax=10G
|
||||
|
||||
Reference in New Issue
Block a user