node-open-mining-portal
node-open-mining-portal copied to clipboard
Question: pool start at system reboot
its not issue instead a question. wondering how to restart pool at system reboot in detach screen mode. tried couple of options including following but none worked:
init.d ---- bash script rc.local ----- edit cron ---- command forever (havent tried since it doesnt give screen type log info)
I would use PM2 over screen mode...
npm install -g pm2
pm2 startup
pm2 start --name pool node -- --optimize_for_size --max-old-space-size=4096 init.js
pm2 save
pm2 start --name pool node -- --optimize_for_size --max-old-space-size=4096 init.js - Start pool pm2 del pool - Delete pool pm2 restart pool - Restart pool pm2 logs pool - Watch logs
done