Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23205 - metalog problems
Summary: metalog problems
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-20 18:17 UTC by Zeek
Modified: 2003-06-30 14:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zeek 2003-06-20 18:17:17 UTC
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"
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-06-23 00:39:04 UTC
> 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.
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-06-30 14:52:40 UTC
Fixed when I eventually get to pid-checking for daemon shutdown.