Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

PegaScape closing when run as a daemon? #6

Open
TippyLion28 opened this issue Jan 18, 2020 · 4 comments
Open

PegaScape closing when run as a daemon? #6

TippyLion28 opened this issue Jan 18, 2020 · 4 comments

Comments

@TippyLion28
Copy link

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? :/

@Arakon
Copy link

Arakon commented Dec 10, 2022

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

@TippyLion28
Copy link
Author

I found some success using the pm2 process manager :)

@Arakon
Copy link

Arakon commented Dec 10, 2022

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

@TippyLion28
Copy link
Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants