LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 04-25-2006, 09:59 PM   #1
jimsvoboda
LQ Newbie
 
Registered: Nov 2004
Distribution: suse 10.2
Posts: 9

Rep: Reputation: 0
How to setup power outage system shutdown?


I have a 64 bit suse 10.0 system that I have connected to an APC ups. I've plugged in the usb cable that came with it. Then I loaded apcupsd with yast. What do i do now to set up the system to shut down shortly after the power fails?
 
Old 04-25-2006, 10:39 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I think that what happens is that /etc/inittab calls the /etc/init.d/powerfail script. Read through the /etc/inittab file , the powerfail script and the apcupsd daemon. The apcupsd should get a signal from the ups and if the power goes down, and run "init powerfail" if it does. If the power comes back up it should run "init powerokwait". If the battery is critically low, it should run "init powerfailnow".

There may not be anything special that you need to do. Perhaps unplug and replug in the ups and read the log to see if powerfail and poweroknow were started.
 
Old 04-27-2006, 05:01 PM   #3
cherif
Member
 
Registered: Nov 2004
Location: Oran, Algeria
Distribution: SuSE 9.3
Posts: 37

Rep: Reputation: 15
Hi,
There is also NUT which stands for Network UPS Tools.
You can get the latest version from http://www.networkupstools.org
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
system shutdown power outage rhandwor Fedora 3 10-10-2005 02:02 AM
RAID 5 after Power outage RabidSquirrel Linux - Hardware 3 08-02-2005 06:46 PM
power outage jbzy3000 Linux - General 2 02-24-2005 09:11 PM
Power Outage notslim General 30 08-28-2003 03:47 AM
Batch Script to shutdown the system in the event of power loss scottpioso Linux - Hardware 5 03-12-2003 03:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 08:49 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
Open Source Consulting | Domain Registration