<?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[Schedule restart MagicMirror]]></title><description><![CDATA[<p dir="auto">“pm2 restart MagicMirror” in prompt works correctly but I can’t schedule it.</p>
<p dir="auto">In crontab I write:<br />
0 4 * * * pm2 restart MagicMirror</p>
<p dir="auto">but it doesn’t work</p>
<p dir="auto">In system log there are:</p>
<pre><code>magicmirror CRON[13707]: (root) CMD (pm2 restart MagicMirror)
magicmirror CRON[17838]: (root) CMD (   cd / &amp;&amp; run-parts --report /etc/cron.hourly)
</code></pre>
<p dir="auto">How can I schedule restart?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.magicmirror.builders/topic/17450/schedule-restart-magicmirror</link><generator>RSS for Node</generator><lastBuildDate>Sat, 06 Jun 2026 20:43:35 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/17450.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 11 Dec 2022 22:06:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Schedule restart MagicMirror on Sun, 18 Dec 2022 04:12:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cldparisi" aria-label="Profile: cldparisi">@<bdi>cldparisi</bdi></a></p>
<p dir="auto">My crontab -e looks like this.</p>
<p dir="auto">00 08 * * * pm2 restart mm<br />
30 21 * * * pm2 stop all</p>
<p dir="auto">I have my background set to black and the desktop bar set to black, and the smallest icon size so when the pm2 stop all runs it looks like a blacked out screen with a few little bitty icons showing for walking around in the dark night light.<br />
Then in the morning it restarts mm.  This way it is not running the SSD or memory card all night adding to the read write times.</p>
]]></description><link>https://forum.magicmirror.builders/post/106652</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/106652</guid><dc:creator><![CDATA[plainbroke]]></dc:creator><pubDate>Sun, 18 Dec 2022 04:12:11 GMT</pubDate></item><item><title><![CDATA[Reply to Schedule restart MagicMirror on Wed, 14 Dec 2022 20:46:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> said in <a href="/post/106547">Schedule restart MagicMirror</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cldparisi" aria-label="Profile: cldparisi">@<bdi>cldparisi</bdi></a> u have to schedule as the user not root</p>
</blockquote>
<p dir="auto">Yesss!!</p>
<p dir="auto">Now I had edit crontab like pi instead root and It works!</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.magicmirror.builders/post/106589</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/106589</guid><dc:creator><![CDATA[cldparisi]]></dc:creator><pubDate>Wed, 14 Dec 2022 20:46:01 GMT</pubDate></item><item><title><![CDATA[Reply to Schedule restart MagicMirror on Mon, 12 Dec 2022 12:39:13 GMT]]></title><description><![CDATA[<p dir="auto">Since the MM started automatically - I reboot the pi once at noon and shut it down completely in the evening.<br />
The next morning it is woken up by the socket timer.</p>
<p dir="auto">crontab:<br />
5 1,13 * * * sudo shutdown -r<br />
0 22 * * * sudo shutdown -P now</p>
]]></description><link>https://forum.magicmirror.builders/post/106551</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/106551</guid><dc:creator><![CDATA[MyMirror]]></dc:creator><pubDate>Mon, 12 Dec 2022 12:39:13 GMT</pubDate></item><item><title><![CDATA[Reply to Schedule restart MagicMirror on Mon, 12 Dec 2022 00:11:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cldparisi" aria-label="Profile: cldparisi">@<bdi>cldparisi</bdi></a> u have to schedule as the user not root</p>
]]></description><link>https://forum.magicmirror.builders/post/106547</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/106547</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 12 Dec 2022 00:11:08 GMT</pubDate></item><item><title><![CDATA[Reply to Schedule restart MagicMirror on Sun, 11 Dec 2022 23:47:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cldparisi" aria-label="Profile: cldparisi">@<bdi>cldparisi</bdi></a> Out of curiosity, what are you hoping to accomplish? I ask because <a href="https://github.com/MichMich/MMM-WatchDog" target="_blank" rel="noopener noreferrer nofollow ugc">MMM-Watchdog</a> will quit the app (and if you have pm2 set to start MagicMirror automatically, it’ll get started once WatchDog kills the app).  So, that might work for you?</p>
]]></description><link>https://forum.magicmirror.builders/post/106546</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/106546</guid><dc:creator><![CDATA[Wenike]]></dc:creator><pubDate>Sun, 11 Dec 2022 23:47:26 GMT</pubDate></item></channel></rss>