First off, (see transcript below) the /sbin/runscripts.sh script emits a warning, but then exits. It is these lines: ewarn "WARNING: \"${myservice}\" has already been started." return 0 As-is, that isn't a warning, it is an error. If it was a warning, it would continue what it was doing. Second, look at this situation, the /etc/init script is unable to get metalog running again. rock root # ps -ef | grep metalog rock root # /etc/init.d/metalog start * WARNING: "metalog" has already been started. rock root # ps -ef | grep metalog rock root # /etc/init.d/metalog stop * Stopping metalog... * Failed to stop metalog [ !! ] rock root # /etc/init.d/metalog start * WARNING: "metalog" has already been started. rock root # ps -ef | grep metalog Reproducible: Always Steps to Reproduce: kill -HUP the metalog process Actual Results: see details Expected Results: see details Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.19-gentoo-r10 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 avi crypt cups gif jpeg libg++ mmx mpeg ncurses pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml berkdb slang readline arts bonobo svga tcltk guile mysql postgres X sdl tcpd pam libwww ssl perl python esd oggvorbis gnome gtk qt kde opengl mozilla -3dnow -apm -gdbm -gpm -java -imlib -oss -mikmod -motif -encode -nls nocardbus matrox dga sse sse2 evo gtk2" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=pentium3 -O2 -pipe -fomit-frame-pointer" CXXFLAGS="-mcpu=pentium3 -O2 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache fixpackages"
> As-is, that isn't a warning, it is an error. If it was a warning, it would > continue what it was doing. If it is already started, why should it try again ? The problem is that metalog died, so it 'cannot' be stopped. Try the following: # /etc/init.d/metalog zap start I know we have a problem with stale pidfiles, and I do have it planned to fix in near future.
Fixed when I eventually get to pid-checking for daemon shutdown.