Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 227945 - [init.d] sys-power/apcupsd-3.14* with openrc-2.* sometime wan't stop
Summary: [init.d] sys-power/apcupsd-3.14* with openrc-2.* sometime wan't stop
Status: RESOLVED DUPLICATE of bug 240694
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Michael Imhof (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-17 22:12 UTC by Michele Schiavo
Modified: 2009-01-15 15:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michele Schiavo 2008-06-17 22:12:07 UTC
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
Comment 1 Michele Schiavo 2008-06-18 10:50:13 UTC
i english sometime is not good..

i add sleep 5 before start-stop-daemon on /etc/inid.d/apcupsd
Comment 2 Billy DeVincentis 2008-10-09 03:45:46 UTC
I'm having same problem!!
Comment 3 Billy DeVincentis 2008-10-13 17:28:42 UTC
If you have gotten it to work please post how, your /etc/init.d/apcupsd
Comment 4 Billy DeVincentis 2008-10-13 19:02:45 UTC
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.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-01-15 15:17:28 UTC

*** This bug has been marked as a duplicate of bug 240694 ***