Post
Topic
Board Beginners & Help
Re: [Tutorial] Install a mining pool [NOMP] on Ubuntu Server 18.04
by
redWAY
on 13/07/2021, 08:48:52 UTC
....

bitcoind.service => clone (and edit) https://github.com/bitcoin/bitcoin/blob/master/contrib/init/bitcoind.service in /lib/systemd/system/bitcoind.service

create nomp.service in /lib/systemd/system/nomp.service
Code:
[Unit]
Description=nomp
After=network.target bitcoind.service

[Service]
Type=simple
User=root
ExecStart=/usr/bin/node /opt/nomp/init.js
Restart=on-failure

[Install]
WantedBy=multi-user.target

then, start and enable bitcoind.service:
Code:
systemctl enable --now bitcoind.service

check the service and the debug.log and check if it's online
Code:
service bitcoind status
tail -f ~/.bitcoin/debug.log

then, start and enable nomp.service:
Code:
systemctl enable --now nomp.service

check the service to check if it's online
Code:
service nomp status

At this point, you should be able to restart your server, and the daemon and nomp should start automatically without needing to start screen sessions to run your setup

helpful for many users