node-open-mining-portal icon indicating copy to clipboard operation
node-open-mining-portal copied to clipboard

Question: pool start at system reboot

Open cyberpay opened this issue 8 years ago • 1 comments

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)

cyberpay avatar Feb 07 '17 02:02 cyberpay

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

mooleshacat avatar Jun 15 '20 09:06 mooleshacat