Koozali.org: home of the SME Server

Removing POWSTAD

brad wright

Removing POWSTAD
« on: October 17, 2002, 05:38:51 AM »
Can someone please tell me how to completely remove powstad from my SME 5.5 server?

I installed it a while ago (before upgrade from 4.1.2) and do not use it.. I have found APCUPSD a MUCH better solution.

However.. when I 'cold boot' the machine.. it starts powstad.. then shuts the system doen.

I have tried renaming/removing the 'Spowstad' file from etc/rcd/rc7.d  directory.. but it is recreated (seemingly) on boot up.

Any help as to getting rid of this annoyance would be appreciated.

Ray Mitchell

Re: Removing POWSTAD
« Reply #1 on: October 17, 2002, 10:21:36 AM »
I think if you rename /etc/powstatd.conf to something else that should stop powstatd.

From the HOWTO:

Another problem you might get if you get the config wrong is the phenomenon of your server shutting down just after it's started up. Try quickly logging in and doing a
shutdown -c
to cancel the shutdown and allow you to modify the config.
If you cannot then:
"try rebooting in single user mode (issue "linux  1"  at  the  LILO  prompt) and disable powstatd by renaming /etc/powstatd.conf to something else. Reboot and you should be able to fix the configuration.+ (from the man file).

For more see
http://www.e-smith.org/docs/howto/contrib/UPSHOWTO.txt

Regards
Ray Mitchell

Rob Wellesley

Re: Removing POWSTAD
« Reply #2 on: October 18, 2002, 01:04:07 AM »
Ray Mitchell wrote:

> "try rebooting in single user mode (issue "linux  1"  at
> the  LILO  prompt)

to boot up in single user mode-

hit CTL-X when the esmith graphic comes up. This puts it into lilo text input mode.

Type: esmith single

You will eventually arrive at the command prompt (you will not be asked to login)

brad wright

Re: Removing POWSTAD
« Reply #3 on: October 18, 2002, 03:11:19 AM »
Thanks for the answeres guys, but Ive already been able to 'disable' it. I just wanted to know how to uninstall it completetly.

Thanks,
Brad

Ray Mitchell

Re: Removing POWSTAD
« Reply #4 on: October 18, 2002, 05:17:08 AM »
Ok then how about
/etc/rc.d/init.d/powstatd stop

Regards
Ray Mitchell

brad wright

Re: Removing POWSTAD
« Reply #5 on: October 18, 2002, 05:54:10 AM »
Ray,

powstad is NOT runnng ..... I have already disabled it,
Running the command you gave me, just gets a
'shutting down UPS services           [failed]' message.

I just want to completely uninstall it from my server. Completely, for good, is no more.... has gone.    Not just disabled

Ray Mitchell

Re: Removing POWSTAD
« Reply #6 on: October 18, 2002, 07:27:15 AM »
rpm -e powstatd
rpm -e e-smith-powstatd

I'm not sure which order to uninstal these, reverse the uninstal order if necessary
Is this what you are after ??
Ray

brad wright

Re: Removing POWSTAD
« Reply #7 on: October 18, 2002, 08:40:21 AM »
thats the one.. thanks mate :)