....
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
[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:
systemctl enable --now bitcoind.service
check the service and the debug.log and check if it's online
service bitcoind status
tail -f ~/.bitcoin/debug.log
then, start and enable nomp.service:
systemctl enable --now nomp.service
check the service to check if it's online
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