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 > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-29-2006, 01:15 AM   #1
renaissance
LQ Newbie
 
Registered: Jan 2006
Location: Estonia
Distribution: Ubuntu 5.10
Posts: 14

Rep: Reputation: 0
APC Smart Ups & Ubuntu 5.10


how can i install APC Smart Ups software in Ubuntu 5.10 base server ??
advices ?
 
Old 04-29-2006, 03:46 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Install the apcupsd daemon.

http://packages.ubuntulinux.org/hoary/admin/apcupsd

Take a look at the /etc/inittab file. There are init actions that deal with different power actions.

From the inittab man page:
Code:
       powerwait
              The process will be executed when the power goes down. Init is usually informed about this by a process talking to a UPS connected to the
              computer.  Init will wait for the process to finish before continuing.

       powerfail
              As for powerwait, except that init does not wait for the process's completion.

       powerokwait
              This process will be executed as soon as init is informed (edit) that the power has been restored.

       powerfailnow
              This  process  will be executed when init is told that the battery of the external UPS is almost empty and the power is failing (provided
              that the external UPS and the monitoring process are able to detect this condition).
From my /etc/inittab file:
Quote:
# what to do when power fails/returns
pf::powerwait:/etc/init.d/powerfail start
pn::powerfailnow:/etc/init.d/powerfail now
#pn::powerfail:/etc/init.d/powerfail now
po::powerokwait:/etc/init.d/powerfail stop
You may have a different service in place of powerfail, but your /etc/inittab will reflect that. The apcupsd service will monitor the ups. If the power fails, it will call "init pf". If the power comes back after a bit, it will call "init po". It the battery level is critically low, it will call "init pn".

Last edited by jschiwal; 04-29-2006 at 05:08 AM.
 
  


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
APC UPS backup-ups ES RJ-45 augurseer Linux - Hardware 3 11-18-2009 11:32 PM
APC UPS Smart_UPS v/s 650 MikeAtVillage Linux - Hardware 4 07-05-2005 04:08 AM
apc Back-ups 650 a10392 Linux - Software 1 12-03-2004 10:51 AM
apc Back-ups a10392 Debian 1 12-03-2004 10:24 AM
APC UPC - cannot find UPS device Parksy Linux - Hardware 13 11-27-2004 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:11 AM.

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