I have been already discussed about this in upstream mailling list and attached patch (from it) seems to work fine. It simply prepares "servicerestart" function for looking for "started" instead of "running" when running /etc/init.d/* status Thanks a lot :-) Reproducible: Always
Created attachment 178922 [details, diff] pm-utils-1.2.3-functions.patch
what does it fix exactly ?
Sorry for the unproper description I have done a quirk for restarting hdparm service when resuming from hibernate/suspend. I tried to use "stopservice" and "restartservice" functions from /usr/lib/pm-utils/functions, the problem is that current stopservice functions looks like the following: if service "$1" status 2>/dev/null | grep -c -q running; then touch "${STORAGEDIR}/service:$1" service "$1" stop fi It searches for "running", but, under Gentoo (at least with baselayout-1, I don't know with -2), status reports "started" instead The attached patch will make it look for both outputs (upstream is already aware of this http://lists.freedesktop.org/archives/pm-utils/2009-January/001866.html , and, as read just now, they have already accepted it :-)) This way, function will exit properly and work as expected :-) Regards
added to 1.2.3-r1. Thanks for reporting.