<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Restart CODESYS runtime</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b45d66454d/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b45d66454d/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/b45d66454d/</id><updated>2020-02-27T17:28:04.320000Z</updated><subtitle>Recent posts to Restart CODESYS runtime</subtitle><entry><title>Restart CODESYS runtime</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b45d66454d/?limit=25#c102" rel="alternate"/><published>2020-02-27T17:28:04.320000Z</published><updated>2020-02-27T17:28:04.320000Z</updated><author><name>murdemon</name><uri>https://forge.codesys.com/u/murdemon/</uri></author><id>https://forge.codesys.comcc4f9f109827d3810de15f418e3a89d298ff41b8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This one help me ... it as old car don't startup from first time (with segmetation fault, but start from second one &lt;/p&gt;
&lt;p&gt;add file /usr/bin/wdt.sh&lt;br/&gt;
#!/bin/sh&lt;br/&gt;
while true&lt;br/&gt;
do&lt;br/&gt;
sleep 5&lt;br/&gt;
RESULT=&lt;code&gt;pgrep codesyscontrol&lt;/code&gt;&lt;br/&gt;
if &lt;span&gt;[ "${RESULT:-null}" = null ]&lt;/span&gt;; then&lt;br/&gt;
/etc/init.d/codesyscontrol start&lt;br/&gt;
echo "start codesys"&lt;br/&gt;
fi&lt;br/&gt;
sleep 5&lt;br/&gt;
done&lt;/p&gt;
&lt;p&gt;and add in /etc/init.d/rc.local&lt;br/&gt;
before return line in do_start func&lt;br/&gt;
/usr/bin/wdt.sh &amp;amp;&lt;/p&gt;
&lt;p&gt;Now it is work .. starting if not from first time (with segmentation fault) from second one for sure..&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Restart CODESYS runtime</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b45d66454d/?limit=25#e97b" rel="alternate"/><published>2020-02-27T17:28:03.319000Z</published><updated>2020-02-27T17:28:03.319000Z</updated><author><name>swa</name><uri>https://forge.codesys.com/u/swa/</uri></author><id>https://forge.codesys.comeec19b0b5b31b1808485e2cdb9529de5433ee23a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks Edwin!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Restart CODESYS runtime</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b45d66454d/?limit=25#50e7" rel="alternate"/><published>2020-02-27T17:28:00.502000Z</published><updated>2020-02-27T17:28:00.502000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com95834f6f92aa9875bb4c292bd9eb743a664ab6b6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Simon,&lt;br/&gt;
you could use:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;sudo&lt;/span&gt; &lt;span class="n"&gt;service&lt;/span&gt; &lt;span class="n"&gt;codesyscontrol&lt;/span&gt; &lt;span class="n"&gt;stop&lt;/span&gt;
&lt;span class="n"&gt;sudo&lt;/span&gt; &lt;span class="n"&gt;service&lt;/span&gt; &lt;span class="n"&gt;codesyscontrol&lt;/span&gt; &lt;span class="k"&gt;start&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;to stop and start the plc&lt;/p&gt;
&lt;p&gt;The default is to generate a bootproject but you could change this in your project under&lt;br/&gt;
application -&amp;gt;properties-&amp;gt;  boot application&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: CreateBootprojectSetting.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1229"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Restart CODESYS runtime</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b45d66454d/?limit=25#9ddf" rel="alternate"/><published>2020-02-27T17:27:59.515000Z</published><updated>2020-02-27T17:27:59.515000Z</updated><author><name>swa</name><uri>https://forge.codesys.com/u/swa/</uri></author><id>https://forge.codesys.com04273aebee39df0963e717af6ac86a0038a6c5e5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi! &lt;br/&gt;
I'm testing a lot of different things with the pi and CODESYS and sometimes the pi (or the CODESYS runtime) crashes. So my question is if I can just restart the CODESYS part without rebooting the pi.&lt;/p&gt;
&lt;p&gt;I'm also wondering if it is possible to stop a running task from the pi command line, if it has lost connection to CODESYS.&lt;/p&gt;
&lt;p&gt;And one last question, is there a setting to not have a boot application? It's a little bit annoying to crash and reboot to a crashing app.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Simon&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>