2002-10-09 14:00:35

by Roy Sigurd Karlsbakk

[permalink] [raw]
Subject: softdog doesn't work on 2.4.20-pre10?

hi

I have the softdog running on some of my machines, and I noticed it didn't
work very well. I've got this little program feeding the dog (attached), so
if it gets killed, the machine should reboot.

but - this doesn't happen!

can anyone take a look at this?

roy
--
Roy Sigurd Karlsbakk, Datavaktmester
ProntoTV AS - http://www.pronto.tv/
Tel: +47 9801 3356

Computers are like air conditioners.
They stop working when you open Windows.


Attachments:
feedthedog.c (1.73 kB)

2002-10-09 14:24:02

by Alan

[permalink] [raw]
Subject: Re: softdog doesn't work on 2.4.20-pre10?

On Wed, 2002-10-09 at 15:07, Roy Sigurd Karlsbakk wrote:
> hi
>
> I have the softdog running on some of my machines, and I noticed it didn't
> work very well. I've got this little program feeding the dog (attached), so
> if it gets killed, the machine should reboot.

Make sure you have no way out set

2002-10-09 15:05:12

by Roy Sigurd Karlsbakk

[permalink] [raw]
Subject: Re: softdog doesn't work on 2.4.20-pre10?

> > hi
> >
> > I have the softdog running on some of my machines, and I noticed it
> > didn't work very well. I've got this little program feeding the dog
> > (attached), so if it gets killed, the machine should reboot.
>
> Make sure you have no way out set

ok. works with no way out, but still...

When I killed 'feedthedog', I sent it a SIGKILL, so it couldn't have shut down
the softdog properly.

roy

--
Roy Sigurd Karlsbakk, Datavaktmester
ProntoTV AS - http://www.pronto.tv/
Tel: +47 9801 3356

Computers are like air conditioners.
They stop working when you open Windows.

2002-10-09 15:16:42

by Alan

[permalink] [raw]
Subject: Re: softdog doesn't work on 2.4.20-pre10?

On Wed, 2002-10-09 at 16:12, Roy Sigurd Karlsbakk wrote:
> > > hi
> > >
> > > I have the softdog running on some of my machines, and I noticed it
> > > didn't work very well. I've got this little program feeding the dog
> > > (attached), so if it gets killed, the machine should reboot.
> >
> > Make sure you have no way out set
>
> ok. works with no way out, but still...
>
> When I killed 'feedthedog', I sent it a SIGKILL, so it couldn't have shut down
> the softdog properly.

Of course it did , it exited so the fil ehandles closed


2002-10-09 15:20:03

by Roy Sigurd Karlsbakk

[permalink] [raw]
Subject: Re: softdog doesn't work on 2.4.20-pre10?

On Wednesday 09 October 2002 17:33, Alan Cox wrote:
> On Wed, 2002-10-09 at 16:12, Roy Sigurd Karlsbakk wrote:
> > > > hi
> > > >
> > > > I have the softdog running on some of my machines, and I noticed it
> > > > didn't work very well. I've got this little program feeding the dog
> > > > (attached), so if it gets killed, the machine should reboot.
> > >
> > > Make sure you have no way out set
> >
> > ok. works with no way out, but still...
> >
> > When I killed 'feedthedog', I sent it a SIGKILL, so it couldn't have shut
> > down the softdog properly.
>
> Of course it did , it exited so the fil ehandles closed

not according to Documentation/watchdog-api.txt

but

it doesn't tell if the softdog supports the send-'V'-before-close-file command
to shut it down

roy
--
Roy Sigurd Karlsbakk, Datavaktmester
ProntoTV AS - http://www.pronto.tv/
Tel: +47 9801 3356

Computers are like air conditioners.
They stop working when you open Windows.

2002-10-09 15:29:57

by Alan

[permalink] [raw]
Subject: Re: softdog doesn't work on 2.4.20-pre10?

On Wed, 2002-10-09 at 16:27, Roy Sigurd Karlsbakk wrote:
> it doesn't tell if the softdog supports the send-'V'-before-close-file command
> to shut it down

That is a shutdown in no way out mode. In default mode when you close
the watchdog it stops

2002-10-09 15:51:07

by Roy Sigurd Karlsbakk

[permalink] [raw]
Subject: Re: softdog doesn't work on 2.4.20-pre10?

On Wednesday 09 October 2002 17:46, Alan Cox wrote:
> On Wed, 2002-10-09 at 16:27, Roy Sigurd Karlsbakk wrote:
> > it doesn't tell if the softdog supports the send-'V'-before-close-file
> > command to shut it down
>
> That is a shutdown in no way out mode. In default mode when you close
> the watchdog it stops

ok. so 'no way out' really means 'one way out'?

--
Roy Sigurd Karlsbakk, Datavaktmester
ProntoTV AS - http://www.pronto.tv/
Tel: +47 9801 3356

Computers are like air conditioners.
They stop working when you open Windows.