<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Auto restart MagicMirror after x hours ?]]></title><description><![CDATA[<p dir="auto">Hi everybody,</p>
<p dir="auto">After 5/6 hours my screen become black and i don’t find why.</p>
<p dir="auto">For view MM i do launch  :</p>
<pre><code>pm2 restart mm
</code></pre>
<p dir="auto">So for auto restart after 5 hours, i have create  a cron :</p>
<pre><code>* 5 * * * pm2 restart mm
</code></pre>
<p dir="auto">don’t work… :(</p>
<p dir="auto">but :</p>
<pre><code>pi@raspmagicmirror1:~/MagicMirror $ tail -f /var/log/syslog | grep CRON
Sep 12 19:12:02 raspmagicmirror1 CRON[5590]: (root) CMD (pm2 restart mm)
Sep 12 19:12:04 raspmagicmirror1 CRON[5586]: (CRON) info (No MTA installed, discarding output)
</code></pre>
<p dir="auto">So why MM don’t restart ?</p>
<p dir="auto">Thx for help (sorry for poor english)</p>
]]></description><link>https://forum.magicmirror.builders/topic/8738/auto-restart-magicmirror-after-x-hours</link><generator>RSS for Node</generator><lastBuildDate>Thu, 12 Mar 2026 16:35:46 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/8738.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 Sep 2018 17:21:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Auto restart MagicMirror after x hours ? on Fri, 14 Sep 2018 02:00:08 GMT]]></title><description><![CDATA[<p dir="auto">I see your original problem. You have the cron job set to execute each day at 5am.</p>
<p dir="auto">Here is the cron command for every five hours:<br />
0 */5 * * *  pm2 restart /home/piMagicMirror/mm.sh</p>
<p dir="auto">I now have this running myself (every three hours).</p>
<p dir="auto">Note: The leading 0 means that it will execute in the 0th minute of the hour.</p>
]]></description><link>https://forum.magicmirror.builders/post/44405</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/44405</guid><dc:creator><![CDATA[fuet]]></dc:creator><pubDate>Fri, 14 Sep 2018 02:00:08 GMT</pubDate></item><item><title><![CDATA[Reply to Auto restart MagicMirror after x hours ? on Thu, 13 Sep 2018 16:56:17 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for help.</p>
<p dir="auto">I have installed gnome-schedule to manage from desktop mode with VNC.</p>
]]></description><link>https://forum.magicmirror.builders/post/44391</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/44391</guid><dc:creator><![CDATA[Smotx]]></dc:creator><pubDate>Thu, 13 Sep 2018 16:56:17 GMT</pubDate></item><item><title><![CDATA[Reply to Auto restart MagicMirror after x hours ? on Thu, 13 Sep 2018 12:12:09 GMT]]></title><description><![CDATA[<p dir="auto">My cronjob looks like this: <code>0 6 * * * pm2 reload mm</code>and it is working just fine. Maybe try the reload instead of the restart command?<br />
Also, I run <code>crontab -e</code>without sudo.</p>
]]></description><link>https://forum.magicmirror.builders/post/44384</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/44384</guid><dc:creator><![CDATA[MadScientist]]></dc:creator><pubDate>Thu, 13 Sep 2018 12:12:09 GMT</pubDate></item><item><title><![CDATA[Reply to Auto restart MagicMirror after x hours ? on Thu, 13 Sep 2018 12:06:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/smotx" aria-label="Profile: smotx">@<bdi>smotx</bdi></a>, here is a thread with a similar goal to restart from cron:<br />
<a href="https://forum.magicmirror.builders/topic/6826/how-to-autorestart-mm-once-a-day/4">https://forum.magicmirror.builders/topic/6826/how-to-autorestart-mm-once-a-day/4</a></p>
]]></description><link>https://forum.magicmirror.builders/post/44382</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/44382</guid><dc:creator><![CDATA[fuet]]></dc:creator><pubDate>Thu, 13 Sep 2018 12:06:05 GMT</pubDate></item></channel></rss>