Red Hat Bugzilla – Bug 455564
named init script doesn't wait for server terminaton
Last modified: 2013-04-30 19:40:22 EDT
+++ This bug was initially created as a clone of Bug #455540 +++
Description of problem:
It looks like this is was likely addressed in bug 426382, however there is no
fix incorporated into RH 4 (and presumably 5, though I have not verified). If
named is stopped via rndc, it won't exit immediately and as such the 'start' of
a 'restart' will be attempted before the prior instance had completed shutdown.
Version-Release number of selected component (if applicable):
Get a reasonably loaded bind instance going (~200mb of heap in this case) and
execute a restart via the stock init script. Most of the time the start will
fail due to the daemon still exiting.
A fix as trivial as:
> while pidofproc named >/dev/null 2>&1; do
> sleep 1
< # wait a couple of seconds for the named to finish closing down
< sleep 2
...resolves the issue.
-- Additional comment from firstname.lastname@example.org on 2008-07-16 04:52 EST --
Right you are. Thanks for your report
Hm, after inspection this bug affects only RHEL4 systems. RHEL5 initscript is already sane. Closing