Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113755 - rc-status (apparently incorrectly) reports 'broken' scripts. Use rc-update to remove/readd scripts to fix.
Summary: rc-status (apparently incorrectly) reports 'broken' scripts. Use rc-update t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
: 128696 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-27 18:17 UTC by Philip H. Smith
Modified: 2006-04-18 17:10 UTC (History)
2 users (show)

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


Attachments
( rc-status boot ; rc-status ) > rc-status.log (rc-status.log,2.48 KB, text/plain)
2005-11-27 18:22 UTC, Philip H. Smith
Details
Output of rc-status (-s) (rc-status.txt,10.17 KB, text/plain)
2006-04-03 14:26 UTC, Peter Kelly
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philip H. Smith 2005-11-27 18:17:42 UTC
rc-status reports several of my rc scripts from both boot and default as being
'broken'.  The status reported by the scripts themselves (when run with
'status') reports they are started.  The scripts in particular were keymaps,
domainname, consolefont, net.lo, urandom, rmnologin, bootmisc from runlevel
boot, and local, netmount from default.  Running each of these rc scripts with
the 'broken' parameter (to display missing INEED deps) shows all dependencies
satisified in all cases (or, like local, there simply are none.)  If I remove
and re-add these scripts to the appropriate levels, then their status as
reported by rc-status becomes 'started'.  I do not know when this started, and
this install is fairly old (but otherwise well-maintained.)  I can reproduce
this across reboots, with the same scripts showing up as broken, but I haven't
tried rebooting since my proposed workaround.  I'll post a comment when I do.

Reproducible: Always
Steps to Reproduce:
1. run rc-status (or rc-status boot)

Actual Results:  
Several services (but always the same set) show up as 'broken' without obvious
reasons for doing so.  The service scripts themselves run and seem to be fine.

Expected Results:  
Correctly reported the state of my services, telling me why they aren't on if
there really is an error.

Portage 2.0.53_rc7 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r3,
2.6.14-gentoo-r3 i686)
=================================================================
System uname: 2.6.14-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 3.60GHz
Gentoo Base System version 1.12.0_pre11
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config
/usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c
/etc/env.d"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/
http://distro.ibiblio.org/pub/linux/distributions/gentoo/
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://mirror.datapipe.net/gentoo
http://prometheus.cs.wmich.edu/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow S3TC X X509 Xaw3d a52 aac aalib acpi aim alsa apache2 async
audiofile avi bash-completion berkdb bitmap-fonts bl blender-game bluetooth
bonobo bootsplash browserplugin bzip2 cardbus cddb cdio cdparanoia cdr cegui cg
chroot cjk cpudetection crypt css cups curl devil dga dhcp dio djbfft dmx doc
double-precision dts dvd dvdr dvdread ecc editor edl eds emacs emboss encode
enscript escreen exif expat extras fam fat fbcon ffcall ffmpeg figlet firefox
flac flood fmod font-server foomaticdb fortran freetds gcj gdbm gif gimpprint
glep glitz glut gmail gmailtimestamps gnome gnustep gnutls gphoto2 gpm gps gs
gsm gsnd gssapi gstreamer gtk gtk2 gtkhtml guile gzip hfs hpn http icecast icq
idn ieee1394 imagemagick imap imlib imlib2 inifile inkjar innkeywords innodb
intl irc irda irmc jabber jack jack-tmpfs jai java javacomm javamail javascript
jbig jce jfs jikes jimi jms jmx joystick jp2 jpeg jta junit jython kde kdepim
kerberos keyscrub kqemu krb4 ladcca largeterminal latex lcd lcms leim libcaca
libclamav libdsk libg++ libsamplerate libvisual libwww lirc live lj lm_sensors
logitech-mouse ltsp lua lzo lzw mad maildir mailwrapper mapeditor maps math mccp
mcve mgetty mikmod mime ming mjpeg mmap mmx mmxext mng mod mod_irc mod_muc
mod_pubsub mozcalendar mozdevelop mozsvg mozxmlterm mp3 mp4live mpeg mpeg2 mpeg4
mplayer msn multi-tty multicall multitarget musepack music nas ncurses neXt net
network neural nls nntp no-htdocs nocd nodrm nptl nptlonly ntfs numeric nvidia
oav objc offensive ofx ogdi ogg oggvorbis ogre on-the-fly-crypt openal openexr
opengl openntpd openssh osc oscar pam pam_chroot parse-clocks pcmcia pcntl pcre
pda pdflib perl pfpro pg-hier physfs plotutils plugin png pnp posix ppds print
python qemu-fast qmail qt quicktime quotes rar readline real recode reiserfs
remix remote rhino rogue rpc rss rtc sasl savedconfig sblive scanner screen sdl
sensord serial session sftp sftplogging sharedmem shorten silc silverxp skey slp
smime sms sndfile soap sockets socks5 sounds source sox spamassassin speedo
speex spell sse sse2 ssl stencil-buffer stream streamzap stroke subp subtitles
subversion svg svgz symlink sysfs sysvipc szip tcpd tetex tga theora threads
tidy tiff tools transcode transparent-proxy truetype truetype-fonts trusted
type1 type1-fonts udev underscores unicode ups urandom usb utf8 v4l v4l2 vcd
vcdimager verbose videos vidix virus-scan visualization vlm vnc voice vorbis web
webdav wifi win32codecs winbind wma123 wmf xanim xatrix xfs xim xine xinerama
xml xml2 xmlrpc xmms xosd xpm xrandr xscreensaver xsl xslt xv xvid xvmc yahoo
yv12 zeroconf zlib zvbi userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Philip H. Smith 2005-11-27 18:22:04 UTC
Created attachment 73701 [details]
( rc-status boot ; rc-status ) > rc-status.log

the stopped (and in fact busted) tomcat-5 is unrelated.
Comment 2 Philip H. Smith 2005-11-27 18:28:59 UTC
The workaround appears to fix it across reboots as well.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-11-28 03:08:05 UTC
The broken status refers to a broken symbolic link in /etc/runlevels/$runlevel
The broken links were caused either by a portage bug, the baselayout ebuild or a
stage snapshot. Broken links caused rc service ordering for startup/shutdown to
be wrong.

I've added a message to rc-status to reflect this and tell you how to fix it.

Your workaround is 100% the correct fix btw :)
Comment 4 Peter Kelly 2006-04-03 14:26:32 UTC
Created attachment 83846 [details]
Output of rc-status (-s)
Comment 5 Roy Marples (RETIRED) gentoo-dev 2006-04-03 15:25:03 UTC
Will be fixed in pre17.
Comment 6 Roy Marples (RETIRED) gentoo-dev 2006-04-08 01:48:52 UTC
pre17 is out
Comment 7 SpanKY gentoo-dev 2006-04-18 17:10:45 UTC
*** Bug 128696 has been marked as a duplicate of this bug. ***