<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">good morning, <div class=""><br class=""></div><div class="">is it possible to automatically restart pd (or the computer) whenever i get </div><div class="">watchdog: signaling pd </div><div class="">?</div><div class=""><br class=""></div><div class="">in other words: what would be the proper way to monitor a linux system and act upon e.g. CPU usage greater than xy% ?</div><div class="">does anyone have experience with ps-watcher?</div><div class=""><a href="http://ps-watcher.sourceforge.net" class="">http://ps-watcher.sourceforge.net</a></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><h3 id="head-53fcb2f376a0a3335eec75186e928b2db8d8766b-3" class=""><span style="font-weight: normal;" class="">i need help understanding this description of the pd-watchdog</span></h3><p class="">
<em class="">s_watchdog.c</em> is the source of pd-watchdog, which was spawned in <tt class="">sys_startgui()</tt>. pd-watchdog monitors its <tt class="">stdin</tt> for any input, timing out after 5 seconds if nothing was received. In this case it kills <em class="">pd</em> with a <tt class="">SIGHUP</tt>, but normally it will continue looping as long as characters are received from <em class="">pd' at a rate of at least one every 5 seconds. So if <tt class="">pdtk_watchdog</tt> calls </em>pd<em class=""> every 2 seconds and <tt class="">glob_watchdog()</tt> sends a <tt class="">CR</tt> each time through the pipe, everything runs smoothly.  </em></p><div class=""><br class=""></div></div><div class="">"pd-watchdog monitors its <tt class="">stdin</tt> for any input” does this also work if i start pd with -stderr >2/dev/null ?</div><div class="">is the fact that i run pd as superuser responsible for pd NOT beeing killed by SIGHUP ?</div></body></html>