<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>

<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-GB link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='color:#1F497D'>Ok Guys,<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>I’m starting to think that this
might not be a configuration thing. Seems that I have several boxes running
identical configurations, by that I mean.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>/etc/watchdog.conf<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>/etc/default/watchdog<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>/etc/init.d/watchdog<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Are all the same on each system
when I look at them, however, for some reason one of them seems to be having
this issue of not rebooting when the tests fail.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>I’m starting to wonder if this
is down to something else, perhaps the drivers, or the watchdog itself? Is
there any way to manually ping the watchdog and ask it to reboot the system?
Presumably that’ll help narrow down where the problem exists </span><span
style='font-family:Wingdings;color:#1F497D'>J</span><span style='color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Any suggestions? This unit is out
in the field so doing a rebuild isn’t an option and I really need this watchdog
alive and barking.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Cheers guys,<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Rob<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>
voyage-linux-bounces+robert.rawlins=thinkbluemedia.co.uk@list.voyage.hk
[mailto:voyage-linux-bounces+robert.rawlins=thinkbluemedia.co.uk@list.voyage.hk]
<b>On Behalf Of </b>Robert Rawlins<br>
<b>Sent:</b> 15 September 2008 14:18<br>
<b>To:</b> voyage-linux@voyage.hk<br>
<b>Subject:</b> RE: [Voyage-linux] Broken watchdog?<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>Hi Dario,<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Thanks for the reply on this.
I’m glad you can confirm that it’s not my watchdog.conf which is causing the
problem. The watchdog script (/etc/default/watchdog) on my box looks like this:<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'># Start watchdog at boot time? 0 or 1<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>run_watchdog=1<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>#<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>#
Specify additional watchdog options here (see manpage).</span><span
style='color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Does that seem normal to you?
Also, as a little additional information, the syslog entry when the box first
starts up for watchdog looks like this:<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>Sep 15 12:03:56 voyage watchdog[3290]: starting
daemon (5.2):<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>Sep 15 12:03:56 voyage watchdog[3290]: int=15s
realtime=yes sync=no soft=no mla=0 mem=0<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>Sep 15 12:03:56 voyage watchdog[3290]: ping: no
machine to check<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>Sep 15 12:03:56 voyage watchdog[3290]: file: no file
to check<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>Sep 15 12:03:56 voyage watchdog[3290]: pidfile:
/var/run/myapp.pid<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>Sep 15 12:03:56 voyage watchdog[3290]: interface: no
interface to check<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>Sep 15 12:03:56 voyage watchdog[3290]: test=none(0) repair=none
alive=/dev/watchdog heartbeat=none temp=none to=root no_act=no<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>Sep
15 12:03:56 voyage watchdog[3290]: was able to ping process 3249
(/var/run/myapp.pid).<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Again, is this what you would
expect to see on a normal system configuration?<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Many thanks,<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Robert<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> Dario Finardi [mailto:d.finardi@gear.it] <br>
<b>Sent:</b> 15 September 2008 09:04<br>
<b>To:</b> Robert Rawlins<br>
<b>Subject:</b> R: [Voyage-linux] Broken watchdog?<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>Using such a configuration my boards are working correctly.</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'> <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>have you turned-on the watchdog script modifing the status variable
run_watchdog=1?</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'> <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>

<div class=MsoNormal align=center style='text-align:center'><span lang=IT
style='font-size:12.0pt;font-family:"Times New Roman","serif"'>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><span lang=IT
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Da:</span></b><span
lang=IT style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
voyage-linux-bounces+d.finardi=gear.it@list.voyage.hk
[mailto:voyage-linux-bounces+d.finardi=gear.it@list.voyage.hk] <b>Per conto di </b>Robert
Rawlins<br>
<b>Inviato:</b> giovedì 11 settembre 2008 16.03<br>
<b>A:</b> voyage-linux@voyage.hk<br>
<b>Oggetto:</b> RE: [Voyage-linux] Broken watchdog?</span><span lang=IT
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Dario,<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Thanks for your reply to and
taking the time help out. Sorry for my late reply, I’ve had my head buried in
code the past couple of days.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>My watchdog configuration file
looks like this:<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>realtime            
= yes<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>priority            
= 1<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>pidfile             
= /var/run/myapp.pid<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>watchdog-device
     = /dev/watchdog<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>interval     
       = 15<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>That’s all there is too it. In
syslog it logs all the checks as I detailed in my original post but after the process
crashes and watchdog cannot find the process I get no more log entries from
watchdog and the system is not rebooted.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Let me know if you need anything
else.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Thanks,<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Robert<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> Dario Finardi [mailto:d.finardi@gear.it] <br>
<b>Sent:</b> 10 September 2008 14:32<br>
<b>To:</b> Robert Rawlins; voyage-linux@voyage.hk; voyage-linux@voyage.hk<br>
<b>Subject:</b> R: [Voyage-linux] Broken watchdog?<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>may you post your watchdog configuration?</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>

<div class=MsoNormal align=center style='text-align:center'><span lang=IT
style='font-size:12.0pt;font-family:"Times New Roman","serif"'>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><span lang=IT
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Da:</span></b><span
lang=IT style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> voyage-linux-bounces+d.finardi=gear.it@list.voyage.hk
[mailto:voyage-linux-bounces+d.finardi=gear.it@list.voyage.hk] <b>Per conto di </b>Robert
Rawlins<br>
<b>Inviato:</b> mercoledì 10 settembre 2008 12.12<br>
<b>A:</b> voyage-linux@voyage.hk; voyage-linux@voyage.hk<br>
<b>Oggetto:</b> [Voyage-linux] Broken watchdog?</span><span lang=IT
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

<p class=MsoNormal>Guys,<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>My watchdog doesn’t appear to be working quite correctly and
I’m hoping you can help me out. I have it watching a process for me to ensure
its still alive and I can see it logging this check in syslog like so:<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>Sep
10 08:50:11 voyage watchdog[3351]: still alive after 5661 interval(s)<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>Sep
10 08:50:11 voyage watchdog[3351]: was able to ping process 3250
(/var/run/myapp.pid).</span><o:p></o:p></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>Sep
10 08:50:26 voyage watchdog[3351]: still alive after 5662 interval(s)<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>Sep
10 08:50:26 voyage watchdog[3351]: pinging process 3250 (/var/run/myapp.pid)
gave errno = 3 = 'No such process'<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>

<p class=MsoNormal>As you can see, it knows it cannot ping my process as it has
crashed, yet the system doesn’t appear to reboot itself. It just sits there
like a dead duck <span style='font-family:Wingdings'>J</span><o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>I’m sure this was working in the past but cannot be sure.
This is using Voyage 0.5 on an ALIX board.<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>I’d really appreciate some advice on this and how to debug
if this is an issue.<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>Robert<o:p></o:p></p>

</div>

</body>

</html>