sudo cp *.service /etc/systemd/system
sudo systemctl enable --now lotus-daemon.service
sudo systemctl enable --now lotus-miner.service
sudo systemctl enable --now [email protected]
for ID in $(seq 0 1)
do
sudo systemctl enable --now lotus-worker-p2@${ID}.service
done
for ID in $(seq 0 5)
do
sudo systemctl enable --now lotus-worker-c2@${ID}.service
done
OR use systemd target unit
sudo cp *.service /etc/systemd/system
sudo cp *.target /etc/systemd/system
sudo systemctl enable --now lotus-daemon.service
sudo systemctl enable --now lotus-miner.service
sudo systemctl enable --now lotus-worker-p1s.target
sudo systemctl enable --now lotus-worker-p2s.target
sudo systemctl enable --now lotus-worker-c2s.target