Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19701 - System complains of missing files when running rc scripts
Summary: System complains of missing files when running rc scripts
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Jay Pfeifer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-20 20:42 UTC by Salim Fadhley
Modified: 2003-11-21 10:37 UTC (History)
1 user (show)

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 Salim Fadhley 2003-04-20 20:42:51 UTC
Whenever I try to ruun one of the rc scripts I get some odd error messages. As
far as I can tell, the RC scripts are running correctly but are providing
confusing feedback. This behavour only began this week, so it must have been
something I brought in with a recent ebuild:

I marked this down as a major bug becase even though it is non-critical, having
the RC scripts is essential for newbies. People will be put off if this is not
fixed!

root@imelda init.d # ./mysql status
/sbin/runscript.sh: line 75: /var/tmp/portage/http: No such file or directory
/sbin/runscript.sh: line 76: /etc/init.d/http: No such file or directory
 * status:  started
root@imelda init.d # ./mysql restart
/sbin/runscript.sh: line 75: /var/tmp/portage/http: No such file or directory
/sbin/runscript.sh: line 76: /etc/init.d/http: No such file or directory
 * Stopping mysqld...                                                     [ ok ]
 * Starting mysqld...                                                     [ ok ]
root@imelda init.d # ./zope start                                        
/sbin/runscript.sh: line 75: /var/tmp/portage/http: No such file or directory
/sbin/runscript.sh: line 76: /etc/init.d/http: No such file or directory
 * Starting zope...
 * Failed to start zope                                                   [ !! ]

root@imelda init.d # ./apache restart
/sbin/runscript.sh: line 75: /var/tmp/portage/http: No such file or directory
/sbin/runscript.sh: line 76: /etc/init.d/http: No such file or directory
 * Stopping apache...                                                     [ ok ]
 * Starting apache...                                                     [ ok ]

Reproducible: Always
Steps to Reproduce:
1. Go into your /etc/init.d folder
2. Attempt to start, stop, status or restart one of your services.
3.

Actual Results:  
The service ran as exected but with irrelivant seeming error messages.

Expected Results:  
The system should have started or stopped the service without any extra complaints.

Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20-gentoo-r1 i686 AMD Duron(tm) Processor 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Lin
ux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share
/config /var/bind /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="3dnow apm crypt cups libg++ mikmod mpeg nls gtkhtml berkdb slang readline t
etex svga tcltk guile tcpd libwww ssl python imlib oggvorbis qt motif gif imap i
nnodb java jikes jpeg junit kde mysql mozilla mmx ncurses oav opengl oss pam pda
 pdflib perl gdbm pilotutils png quicktime samba scanner sdl spell tiff truetype
 usb xml xml2 xmms xv zeo zlib x86 gphoto2 gpm X gtk gnome acpi apache arts avi 
bonobo cdr dvd encode esd ethereal flash alsa"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=athlon -O3 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Salim Fadhley 2003-04-20 21:13:14 UTC
I am fairly sure that this is not a MySQL bug. All scripts in the etc/init.d folder appear to be equally affected. The reason why I used mysql in my example is that the service appeared to be starting correctly despite the warning messages. This bug needs to be referred onto whoever maintains the /etc/init.d common scripts.
Comment 2 Salim Fadhley 2003-04-21 12:26:40 UTC
Each time I run one rc script from a new folder, the folder name is added to the list of folders in the error messae. Thus the length of the error message keeps on increasing!

The bugs still show up after an env-update and a system reset. It's quite hideous to see a huge list of these errors pollute the nasty screen that is normally full of sensible looking [ok] service start messages.

sal@imelda init.d $ sudo ./apache start
/sbin/runscript.sh: line 75: /var/tmp/portage/http: No such file or directory
/sbin/runscript.sh: line 76: /etc/init.d/http: No such file or directory
/sbin/runscript.sh: line 77: /home/sal/http: No such file or directory
/sbin/runscript.sh: line 78: /etc/hotplug/http: No such file or directory
/sbin/runscript.sh: line 79: /etc/apache/conf/vhosts/http: No such file or directory
/sbin/runscript.sh: line 80: /home/httpd/htdocs/jukebox-4.1/www/http: No such file or directory
/sbin/runscript.sh: line 81: /home/httpd/htdocs/jukebox-4.1/http: No such file or directory
/sbin/runscript.sh: line 82: /etc/conf.d/http: No such file or directory
 * Starting apache...                                                                                 [ ok ]
sal@imelda init.d $ script
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-04-21 21:59:45 UTC
Bug Wranglers: Please re-assign this to the correct location (I'm not sure who myself)
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-04-24 17:09:58 UTC
please attach fstab

is /etc on an other partition than root ?
is /etc empty ?

which version of baselayout ?
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-09 07:51:17 UTC
jay, tossing to you, since az is offline for a while
Comment 6 Andrew Cooks (RETIRED) gentoo-dev 2003-11-21 06:14:09 UTC
Can this still be reproduced?
Comment 7 Heinrich Wendel (RETIRED) gentoo-dev 2003-11-21 10:37:46 UTC
i dont think so, reopen if it still exists