Re: [PD] watchdog -> force restart

2019-02-18 Thread Peter P.
* michael strohmann [2019-02-18 11:49]: > wow, that looks interesting! > so which object do you use to read out the gpio? I use Miller's gpio object. > would you be so kind as to share your gpioReading-demo.pd ? Attached. #N canvas 1 49 450 300 10; #X obj 194 95 loadbang; #X msg 194 121 open 1; #

Re: [PD] watchdog -> force restart

2019-02-18 Thread Csaba Láng
Not sure if this is what you are looking for, but I use a python script to run 2 pd instances connected via netsend. The main patch sends a ing every second to the other patch, if the ping is stopped, the second kills the main pd. What the script recognizes and restarts both pd patches. Best, Popes

Re: [PD] watchdog -> force restart

2019-02-18 Thread michael strohmann
wow, that looks interesting! so which object do you use to read out the gpio? would you be so kind as to share your gpioReading-demo.pd ? thanks! > On 18 Feb 2019, at 10:54, Peter P. wrote: > > * michael strohmann [2019-02-18 10:47]: >> >>> On 18 Feb 2019, at 10:36, Peter P. wrote: >>> >>>

Re: [PD] watchdog -> force restart

2019-02-18 Thread michael strohmann
thanks for the clarification! i must have imagined that sigup kills pd…indeed the rest of the system does not freeze. i am still looking for a way automatically restart pd or the computer if pd freezes… > On 18 Feb 2019, at 10:54, IOhannes m zmoelnig wrote: > > On 18.02.19 10:21, michael str

Re: [PD] watchdog -> force restart

2019-02-18 Thread Peter P.
* michael strohmann [2019-02-18 10:47]: > > > On 18 Feb 2019, at 10:36, Peter P. wrote: > > > > * michael strohmann [2019-02-18 10:22]: > >> good morning, > > Guten Morgen! > > > > I know you didn't want this answer, but, is there a chance you can > > figure out why you are getting the watch

Re: [PD] watchdog -> force restart

2019-02-18 Thread IOhannes m zmoelnig
On 18.02.19 10:21, michael strohmann wrote: > i need help understanding this description of the pd-watchdog > >> s_watchdog.c is the source of pd-watchdog, which was spawned in >> sys_startgui(). >> pd-watchdog monitors its stdin for any input, timing out after 5 seconds if >> nothing was recei

Re: [PD] watchdog -> force restart

2019-02-18 Thread michael strohmann
> On 18 Feb 2019, at 10:36, Peter P. wrote: > > * michael strohmann [2019-02-18 10:22]: >> good morning, > Guten Morgen! > > I know you didn't want this answer, but, is there a chance you can > figure out why you are getting the watchdog message in Pd in the first > hand place? yes, i think/

Re: [PD] watchdog -> force restart

2019-02-18 Thread Peter P.
* michael strohmann [2019-02-18 10:22]: > good morning, Guten Morgen! I know you didn't want this answer, but, is there a chance you can figure out why you are getting the watchdog message in Pd in the first hand place? Did you already check the results of aptitude search watchdog > >

[PD] watchdog -> force restart

2019-02-18 Thread michael strohmann
good morning, is it possible to automatically restart pd (or the computer) whenever i get watchdog: signaling pd ? in other words: what would be the proper way to monitor a linux system and act upon e.g. CPU usage greater than xy% ? does anyone have experience with ps-watcher? http://ps-watch