Read the statement by Michael Teeuw here.
Monitor external program...
-
I need a clue on how to do this - I’m wanting to make sure an external program is running on my Pi. and if it’s not display a message on the screen. is there a way to check such things within the magic mirror system?
-
@BKeyport There is very likely an npm module for that.
Like this one:
https://www.npmjs.com/package/find-process -
@lavolp3 Good idea for a module by the way!
You could write one that checks for processes running, shows if they are running or not and starts/restarts them on demand -
This seems to be a good solution as well.
https://www.npmjs.com/package/ps-node -
start the external program with pm2, it will keep it running
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login