Forum Topic - QNX 4 Reboot: (6 Items)
   
QNX 4 Reboot  
Hello,

 

Is there any way (after the fact) to determine whether a QNX 4 node was
reset because of a power event or a software requested shutdown command?  We
have an embedded system that reset and are trying to determine whether it
might have been caused by a power glitch or an inadvertent shutdown command
issued by a user.  Any indications anywhere in the file system?  Anyway to
query Proc to see why it shutdown "the last time".

 

Thanks

 

Larry

RE: QNX 4 Reboot  
If the system was rebooted as a result of a power glitch, the file
system should be marked as dirty, provided that it has been written to.
A chkfsys will tell you whether the file system is clean or not.


-----Original Message-----
From: Larry Sweet [mailto:community-noreply@qnx.com] 
Sent: Tuesday, November 04, 2008 5:10 PM
To: qnx4-community
Subject: QNX 4 Reboot

Hello,

 

Is there any way (after the fact) to determine whether a QNX 4 node was
reset because of a power event or a software requested shutdown command?
We
have an embedded system that reset and are trying to determine whether
it
might have been caused by a power glitch or an inadvertent shutdown
command
issued by a user.  Any indications anywhere in the file system?  Anyway
to
query Proc to see why it shutdown "the last time".

 

Thanks

 

Larry



_______________________________________________
QNX4 Community Support
http://community.qnx.com/sf/go/post15937
Re: RE: QNX 4 Reboot  
Thanks Hugh.

Unfortunately we run chkfsys -Pqrs automatically in our sysinit.node file to ensure disk integrity because this is a 24/
7 embedded system.  

Any place else I can look?

Thanks

Larry
RE: RE: QNX 4 Reboot  
Unfortunately not. That is the only place that I know of looking at.

Hugh.

-----Original Message-----
From: Larry Sweet [mailto:community-noreply@qnx.com] 
Sent: Wednesday, November 05, 2008 3:32 PM
To: qnx4-community
Subject: Re: RE: QNX 4 Reboot

Thanks Hugh.

Unfortunately we run chkfsys -Pqrs automatically in our sysinit.node
file to ensure disk integrity because this is a 24/7 embedded system.  

Any place else I can look?

Thanks

Larry

_______________________________________________
QNX4 Community Support
http://community.qnx.com/sf/go/post16024
Re: RE: QNX 4 Reboot  
On Wed, Nov 05, 2008 at 03:32:28PM -0500, Larry Sweet wrote:
> Thanks Hugh.
> 
> Unfortunately we run chkfsys -Pqrs automatically in our sysinit.node file to ensure disk integrity because this is a 
24/7 embedded system.  
> 
> Any place else I can look?

Does 'sin in' show boottime or some such (been a while since I've
QNX4'd)?

-seanb
Re: RE: QNX 4 Reboot  
One idea.

During system start you can check if the custom file on disk exists (i.e. /tmp/power).

If this file exists (means power glitch) then write an error message somewhere in log file.
Otherwise create empty file (/tmp/power).

Another step is to download and modify "shutdown" source code.
A new shutdown must delete the /tmp/power file.

Jacek