PegaScape closing when run as a daemon?
Opened this issue · 4 comments
I am trying to get PegaScape to run on startup on a Linux system. Calling start.js manually in a terminal works a treat, but when it's called by cron, rc.local or systemd it refuses to stay open. It outputs the IP and DNS address, and then quits with no errors.
The same thing happens on Raspbian and OpenWRT. This is driving me crazy.
Any ideas? :/
Did you ever find a solution?
Getting the same on debian and raspberry.
I found some success using the pm2 process manager :)
Can you give some details? I tried setting that up, but it seems to just kill the process again after a few moments.
Sorry, not near my pi at the moment so can't see exactly what I did. I don't think I did anything particularly special here. Do pm2 logs
to see if you can find out what's up. And remember to set up pm2 from the root account.