Multiple UPS: "/etc/init.d/apcupsd stop" might kill too many processes for SUSE and REDHAT

View: New views
1 Messages — Rating Filter:   Alert me  

Multiple UPS: "/etc/init.d/apcupsd stop" might kill too many processes for SUSE and REDHAT

by Reuti :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

in "./platform/suse/apcupsd.in" (same for redhat) the startup is  
specifying the full path name which is fine:

        /sbin/startproc @sbindir@/apcupsd -f @sysconfdir@/apcupsd.conf

In contrast the stop case specifies only:

        /sbin/killproc apcupsd

which might kill the wrong (in case a /var/run/apcupsd.pid exists) or  
even all other daemons, in case you have more than one apcupsd daemon  
running for multiple UPS. I changed it to use also for the shutdown  
the full pathname.

-- Reuti

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Apcupsd-users mailing list
Apcupsd-users@...
https://lists.sourceforge.net/lists/listinfo/apcupsd-users
LightInTheBox - Buy quality products at wholesale price