PegaScape icon indicating copy to clipboard operation
PegaScape copied to clipboard

PegaScape closing when run as a daemon?

Open TippyLion28 opened this issue 4 years ago • 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? :/

TippyLion28 avatar Jan 18 '20 18:01 TippyLion28

Did you ever find a solution? Getting the same on debian and raspberry.

Arakon avatar Dec 10 '22 08:12 Arakon

I found some success using the pm2 process manager :)

TippyLion28 avatar Dec 10 '22 10:12 TippyLion28

Can you give some details? I tried setting that up, but it seems to just kill the process again after a few moments.

Arakon avatar Dec 10 '22 10:12 Arakon

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.

TippyLion28 avatar Dec 10 '22 17:12 TippyLion28