Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 245435 - sometimes rc-status shows apache as running but it is not
Summary: sometimes rc-status shows apache as running but it is not
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-03 19:06 UTC by Mehmet Giritli
Modified: 2009-01-01 13:25 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 Mehmet Giritli 2008-11-03 19:06:53 UTC
There is a problem with init system and the apache server. Apache does keep pid files properly but when the daemon dies, rc scripts can not detect that it has actually died.

For example, when apache is running, if you manually kill the daemon using killall apache, then rc-status still shows that apache is running.

This becomes especially problematic when apache fails to properly start. In such a situation, even if the daemon fails to start, you might still have rc-status ok!

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-04 18:36:32 UTC
Please post your `emerge --info' too.
Comment 2 Mehmet Giritli 2008-11-05 09:39:26 UTC
Portage 2.1.4.5 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r1 i686)
=================================================================
System uname: 2.6.27-gentoo-r1 i686 AMD Athlon(TM) XP 2200+
Timestamp of tree: Tue, 04 Nov 2008 21:37:02 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.virginmedia.com/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LINGUAS="tr en en_GB en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X X509 a52 aac aalib acpi alsa apache2 applet authdaemond autoipd avahi bash-completion beagle berkdb bookmarks branding buffysize bzip2 cairo ccache cdda cddb cdparanoia cdr clamav clamd colordiff cpudetection cracklib crypt css cups cupsddk dbus device-mapper dga djvu dmi dmx dts dvd dvdr dvdread dvi eds enca encode epiphany evo exif extensions fam fasttrack fat fax ffmpeg firefox flac ftp fuse galago gdbm geoip gif gimp glade gnome gnome-keyring gnutls gocr gpg gpgme gpm graphics grub gs gstreamer gtk hal hddtemp howl-compat hpn icons iconv icq id3 id3tag idea idn imap inotify iproute2 irc isc ithreads java java6 javacomm javascript jce jingle jmf jms john jpeg jpeg2k kde keyscrub kolab kpathsea lame latex libcaca libgda libnotify libsamplerate libsexy libvisual libwww linuxthreads-tls lm_sensors logitech-mouse logrotate lvm lzo magic maildir mailwrapper md5sum mdnsresponder-compat mime mimencode mmkeys mmx mmxext mng mono mouse mozdevelop moznoirc moznomail mp3 mpeg msn mudflap musicbrainz nas nautilus ncurses network new-login new-reg-alloc nls nolvm1 nolvmstatic nptl nptlonly nsplugin ntfs nvidia ocamlopt ocrad offensive ogg opengl openmp openssl pam pango pch pcre pdf php pidgin png portaudio posix postscript ppds prediction pstricks pth pulseaudio python qt4 quotas rdesktop readline real remote rss sasl scanner science session sidebar smime smtp sni sockets sound spamassassin spell spl spoof-source sse ssl startup-notification svg sysfs syslog t1lib taglib tagwriting tcpd tex4ht theora threads tiff tools truetype unicode usb userlocales v4l v4l2 vda vhosts vnc vorbis wavpack win32codecs wma wmf x86 xattr xcomposite xine xorg xulrunner xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="tr en en_GB en_US" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2009-01-01 13:25:01 UTC
then apache has probably crahed ... openrc does not check if processes are still running after they have been started