wget -q -O setup-pool-damominer.sh https://raw.githubusercontent.com/mrkim22222/setup-aleo/main/setup-pool-damominer.sh && chmod +x setup-pool-damominer.sh && sudo /bin/bash setup-pool-damominer.sh
wget -q -O setup-pool-nvn.sh https://raw.githubusercontent.com/mrkim22222/setup-aleo/main/setup-pool-nvn.sh && chmod +x setup-pool-nvn.sh && sudo /bin/bash setup-pool-nvn.sh
Create script:
#!/bin/sh
SERVICE='aleo-prover'
if ps ax | grep -v grep | grep $SERVICE > /dev/null
then
echo "$SERVICE service running, killing --> $SERVICE"
kill $(ps -AF | grep $SERVICE | grep -v grep | awk '{print $2}')
else
echo "$SERVICE is not running"
fi
This service run without root
Refer: Service Pool NVN.
Command:
- Start:
systemctl --user start aleo-pool-nvn
- Stop:
systemctl --user stop aleo-pool-nvn
- Status:
systemctl --user status aleo-pool-nvn
- Check Log:
journalctl --user -u aleo-pool-nvn -f -o cat
- Enable:
systemctl --user enable aleo-pool-nvn
- Disable:
systemctl --user disable aleo-pool-nvn
- Restart:
systemctl --user restart aleo-pool-nvn