Read the statement by Michael Teeuw here.
How to set up a cron job for rebooting the server?
-
Well, hello there.
I run my MM as a server only. It is working fine, but I would like to reboot it with a cron job because some modules seem to freeze over night.
I managed to set up a cron job for rebooting the server. But how can I set “npm run server” in the cron so that it actually starts the server again?
-
@burnydoom use pm2 to autostart the server
see the last script here
https://github.com/sdetweil/MagicMirror_scriptsit starts the MagicMirror/installers/mm.sh script
so you change from
npm start
to
npm run server -
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