A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
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 -