LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 01-04-2005, 05:57 PM   #1
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Rep: Reputation: 30
Running apcupsd at startup


I have apcupsd installed and happy...
The only problem is that it doesn't really seem to start at boot, although
it has put itself into /etd/rc.d (or equivalent).

The server the apcupsd should be running on is using SuSE 9.1
I am now logged in wish SSH, having just restarted.
If my Dad pulls the power cable out of the UPS, it goes on battery mode
and that's it. We put the cable back in.

I now su and say: 'apcupsd', and my dad pulls the cable again,
now I geta system message saying that the power has failed and
we're on bacup batteries.

How do I get the system to type 'apcusd' each time?

Thanks,
Riddick
 
Old 01-04-2005, 06:06 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,165

Rep: Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784
Did you include the full path to the command?

I'm not real familar with SuSE but Rehat/Fedora the last init file to run is rc.local which is where I would run the command from.

Last edited by michaelk; 01-04-2005 at 06:09 PM.
 
Old 01-04-2005, 06:49 PM   #3
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
right:
The path the initiation files that doesn't seem to be having any effect is in:
/etc/init.d (which is linked with rc.d) /apcupsd

Is there a way to check I've configured the program correctly...
maybe it isn't starting because it fails...

Thanks
Riddick
 
Old 01-05-2005, 05:31 PM   #4
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
Solved:
As root run crontab -e and set apcupsd to 'on'.

Can't believe noone knew this...
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to install apcupsd. Carpinus Linux - Software 5 08-10-2005 09:19 PM
APCUPSD - apcaccess problems. Riddick Linux - Software 1 01-05-2005 05:30 PM
apcupsd gui? PowerMatt Linux - Software 1 09-06-2004 07:14 PM
I have a problema using APCUPSD Dapernia Linux - Hardware 0 07-21-2003 05:46 PM
gui for apcupsd tatwell Linux - Software 2 07-14-2003 03:23 PM


All times are GMT -5. The time now is 05: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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration