Adjust service logging and startup settings
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
[Unit]
|
||||
Description=Chainwatch
|
||||
PartOf=sentinel.service
|
||||
After=lotus-daemon.service
|
||||
Requires=lotus-daemon.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/chainwatch run
|
||||
Environment=GOLOG_FILE="/var/log/lotus/chainwatch.log"
|
||||
Environment=GOLOG_LOG_FMT="json"
|
||||
Environment=LOTUS_DB="postgres://postgres:password@localhost:5432/postgres?sslmode=disable"
|
||||
Environment=LOTUS_PATH="/root/.lotus"
|
||||
ExecStart=/usr/local/bin/chainwatch run
|
||||
|
||||
[Install]
|
||||
WantedBy=multiuser.target
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
[Unit]
|
||||
Description=Lotus Daemon
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
Requires=network-online.target
|
||||
|
||||
[Service]
|
||||
Environment=GOLOG_FILE="/var/log/lotus-daemon"
|
||||
Environment=GOLOG_FILE="/var/log/lotus/daemon.log"
|
||||
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
|
||||
RestartSec=10
|
||||
|
||||
MemoryAccounting=true
|
||||
MemoryHigh=8G
|
||||
|
||||
@@ -2,10 +2,11 @@
|
||||
Description=Lotus Storage Miner
|
||||
After=network.target
|
||||
After=lotus-daemon.service
|
||||
Requires=lotus-daemon.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/lotus-storage-miner run
|
||||
Environment=GOLOG_FILE="/var/log/lotus-miner"
|
||||
Environment=GOLOG_FILE="/var/log/lotus/miner.log"
|
||||
Environment=GOLOG_LOG_FMT="json"
|
||||
|
||||
[Install]
|
||||
|
||||
Reference in New Issue
Block a user