Run in background on raspberry pi #1576
Unanswered
TheWalkingDadNL
asked this question in
Q&A
Replies: 1 comment
-
I suggest you to use pm2 for this :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm running running zwavejs2mqtt on a Raspberry Pi and it runs fine. The installation was as instructed in another discussion:
When i SSH to the pi i can start the program and start my config. Values are coming in nicely. But when i close my SSH connection the server is also lost. I tryed searching how to run yarn in the background, but the search ended in nothing. Anyone can point me in the right direction how to keep running this in the background (and even after a restart)?
[Edit]
Little update i found the following link to make a service:
https://stackoverflow.com/questions/64353905/running-npm-start-from-execstart-in-systemctl-service-file
Services give the status active, but it still doesnt run. If i run the .sh file on my own it seems te be running just fine.
[Edit 2]
Fixed the problem and the service is running fine now. Found this in the log:
After a NPM rebuild it worked as it should and its running as a service now.
Beta Was this translation helpful? Give feedback.
All reactions