Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 487084

Summary: sys-apps/openrc: killprocs init script wastes time on shutdown
Product: Gentoo Hosted Projects Reporter: Patrick Lauer <patrick>
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: RESOLVED FIXED    
Severity: normal CC: asturm
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Patrick Lauer gentoo-dev 2013-10-06 10:57:41 UTC
To quote from /etc/init.d/killprocs:

start()
{
        ebegin "Terminating remaining processes"
        killall5 -15 ${killall5_opts}
        sleep 1
        eend 0
        ebegin "Killing remaining processes"
        killall5 -9 ${killall5_opts}
        sleep 1
        eend 0
}

This needlessly spends two seconds waiting. I don't see any negative effect from removing the sleep.
Comment 1 Andreas Sturmlechner gentoo-dev 2013-12-28 13:22:55 UTC
This works absolutely fine on my setup and the time savings together with bug 487384 do add up, with the countless reboots my system needs to go through in the hunt for various i915 bugs...
Comment 2 William Hubbs gentoo-dev 2016-05-05 22:18:37 UTC
https://github.com/openrc/openrc/commit/92e2f2c

This will be in OpenRC-0.21.