Created attachment 361756 [details] PATCH: don't sleep and do killall5 -9 if not needed killall5 has gotten a useful return value as part of the sysvinit-tools-2.87 upgrade. It will now return the following: 0: successfully signaled one or more processed 1: could not read /proc 2: no processes found to signal We can use this by checking the return value of the first killall5 to avoid the 2nd killall5 if no processes to kill were found. Note that this also means, that if the second killall5 does get called, but the processes have already terminated as a result of the first, the action will show [FAILED], this ought to be fixed too, but I was not sure what was the best way to do this.
http://git.fedorahosted.org/git/?p=initscripts.git;a=commitdiff;h=8b87ac94acf67ee6c66530716ba0e74498047241