sometime apcupsd (i think onyl with openrc-2.*) won't stop. /etc/init.d/apcupsd restart apcupsd | * Stopping APC UPS daemon ... [ ok ] apcupsd | * Starting APC UPS daemon ... [ ok ] speriment ~ # /etc/init.d/apcupsd restart apcupsd | * Stopping APC UPS daemon ... apcupsd | * start-stop-daemon: 1 process refused to stop [ !! ] apcupsd | * Starting APC UPS daemon ... apcupsd | * start-stop-daemon: /sbin/apcupsd is already runni [ !! ] speriment ~ # /etc/init.d/apcupsd restart apcupsd | * Stopping APC UPS daemon ... apcupsd | * start-stop-daemon: 1 process refused to stop [ !! ] apcupsd | * Starting APC UPS daemon ... apcupsd | * start-stop-daemon: /sbin/apcupsd is already runni [ !! ] i try to change init.d script adding speed 5 after start-stop-daemon but it solve little the problem. (1/5 fails) Reproducible: Always
i english sometime is not good.. i add sleep 5 before start-stop-daemon on /etc/inid.d/apcupsd
I'm having same problem!!
If you have gotten it to work please post how, your /etc/init.d/apcupsd
There is another dirty workaraound, --oknodo added to the stop daemon line but the reality is that this program needs a new init script for openrc.
*** This bug has been marked as a duplicate of bug 240694 ***