LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-12-2011, 02:28 AM   #1
ghaedi591
LQ Newbie
 
Registered: Nov 2011
Posts: 28

Rep: Reputation: Disabled
log message for power failure


when power failure is occured
1- dose linux write shutdown message in wtmp?
2- is there any log message about reason(power failure)
 
Old 12-12-2011, 03:23 AM   #2
bradbobak
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Rep: Reputation: 1
I don't think the os has time to do that, unless you get a battery backup. In which case (for apc anyhow), you can configure it to log, mail you a message, and probably execute a script to do whatever you want when the system detects a power failure.
 
1 members found this post helpful.
Old 12-12-2011, 03:57 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,577
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
+1 to what bradbobak wrote.

Without a UPS, a power cut is a non-maskable interrupt, like death is to humans.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
power-supply failure log ? tiger2000 Linux - General 2 09-29-2009 11:04 AM
Power Supply failure or Motherboard failure? neilthereildeil Linux - Hardware 3 06-09-2008 05:47 PM
neat command not working azx_get_response timeout message in /var/log/message ninadshaha Red Hat 1 02-19-2008 03:32 PM
set iBook to automatically power-up after power failure peachy Other *NIX 4 04-19-2006 01:44 PM
Power Failure On AC power ONLY Gateway 5300 marti35 Linux - Laptop and Netbook 1 05-22-2005 11:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration