Skip to contentSkip to conversation

software watchdog

DISCUSSION [email protected] 3 participants 3 messages Dec 11, 2001

lore
Share & tools
lore
#0 lore raw

Hi all,

I am using software watchdog in my application. When the watchdog reboots the system,

Quoted 1 line
Quoted 1 line
Quoted 1 line

printk(KERN_CRIT "SOFTDOG: Initiating system reboot.\n"); prints the message

on the console.

I put a delay of 5secs with mdelay, and I can see the message on the console. I wanted the message as a syslog,

so I added kern.crit in /etc/syslog.conf file.,
But I am not getting the above message in the log file. Can any one help me with this ????

Thanks
Girish

#1 lore raw
Quoted 6 lines · [email protected] wrote:

Hi all,

I am using software watchdog in my application. When the watchdog reboots the system,

Quoted 1 line
Quoted 1 line
Quoted 1 line

printk(KERN_CRIT "SOFTDOG: Initiating system reboot.\n"); prints the message

Quoted 8 lines

on the console.

I put a delay of 5secs with mdelay, and I can see the message on the console. I wanted the message as a syslog,

so I added kern.crit in /etc/syslog.conf file.,
But I am not getting the above message in the log file. Can any one help me with this ????

Send the message to "*" instead of /var/log/messages

That, and/or arrange to do a sync before reboot.

I'm sure there are other ways as well...

cu

jjs

#2 lore raw
In reply to [email protected]
Quoted 5 lines · On Tue, Dec 11, 2001 at 01:33:04PM +0530, [email protected] wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line

printk(KERN_CRIT "SOFTDOG: Initiating system reboot.\n"); prints the

message on the console.

I put a delay of 5secs with mdelay, and I can see the message on the console. I wanted the message as a syslog,

In order to log this message to syslog, you need to allow the syslog process to run. If you're using a uniprocessor machine, using mdelay() doesn't allow syslog to run during this time.

Softdog has a "testing" mode, which can be enabled by defining ONLY_TESTING. This disables the automatic reboot, but the system will log the timeout message.

--
Russell King ([email protected]) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html