Update service names
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
parent
39e2f766c8
commit
5b666b896d
@ -11,8 +11,8 @@ ssh "$HOST" 'systemctl stop lotus-daemon'
|
|||||||
ssh "$HOST" 'mkdir -p .lotus .lotusstorage' &
|
ssh "$HOST" 'mkdir -p .lotus .lotusstorage' &
|
||||||
scp "./lotus" "$HOST:/usr/local/bin" &
|
scp "./lotus" "$HOST:/usr/local/bin" &
|
||||||
scp "./lotus-storage-miner" "$HOST:/usr/local/bin" &
|
scp "./lotus-storage-miner" "$HOST:/usr/local/bin" &
|
||||||
scp -C scripts/daemon.service "${HOST}:/etc/systemd/system/lotus-daemon.service" &
|
scp -C scripts/lotus-daemon.service "${HOST}:/etc/systemd/system/lotus-daemon.service" &
|
||||||
scp -C scripts/sminer.service "${HOST}:/etc/systemd/system/lotus-storage-miner.service" &
|
scp -C scripts/louts-miner.service "${HOST}:/etc/systemd/system/lotus-storage-miner.service" &
|
||||||
wait
|
wait
|
||||||
|
|
||||||
ssh "$HOST" 'systemctl daemon-reload'
|
ssh "$HOST" 'systemctl daemon-reload'
|
||||||
|
@ -4,7 +4,7 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/local/bin/lotus daemon
|
ExecStart=/usr/local/bin/lotus daemon
|
||||||
Environment=GOLOG_FILE="/root/.lotus/logs"
|
Environment=GOLOG_FILE="/var/log/lotus-daemon"
|
||||||
Environment=GOLOG_LOG_FMT="json"
|
Environment=GOLOG_LOG_FMT="json"
|
||||||
|
|
||||||
[Install]
|
[Install]
|
@ -1,10 +1,11 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Lotus Storage Miner
|
Description=Lotus Storage Miner
|
||||||
After=network.target
|
After=network.target
|
||||||
|
After=lotus-daemon.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/local/bin/lotus-storage-miner run
|
ExecStart=/usr/local/bin/lotus-storage-miner run
|
||||||
Environment=GOLOG_FILE="/root/.lotusstorage/logs"
|
Environment=GOLOG_FILE="/var/log/lotus-miner"
|
||||||
Environment=GOLOG_LOG_FMT="json"
|
Environment=GOLOG_LOG_FMT="json"
|
||||||
|
|
||||||
[Install]
|
[Install]
|
@ -2,5 +2,5 @@
|
|||||||
|
|
||||||
HOST=$1
|
HOST=$1
|
||||||
|
|
||||||
scp scripts/daemon.service "${HOST}:/etc/systemd/system/lotus-daemon.service"
|
scp scripts/lotus-daemon.service "${HOST}:/etc/systemd/system/lotus-daemon.service"
|
||||||
scp scripts/sminer.service "${HOST}:/etc/systemd/system/lotus-storage-miner.service"
|
scp scripts/lotus-miner.service "${HOST}:/etc/systemd/system/lotus-storage-miner.service"
|
||||||
|
Loading…
Reference in New Issue
Block a user