baselayout-1.12.10-r5: /etc/init.d/hostname does neither start at boot time, nor can be started manually. root@daywalker:~ [17:03]# /etc/init.d/checkroot status * status: started root@daywalker:~ [17:09]# /etc/init.d/hostname start checkroot * ERROR: Some services needed are missing. Run * './hostname broken' for a list of those * services. hostname was not started. root@daywalker:~ [17:09]# /etc/init.d/hostname broken checkroot -----config starts----- # /etc/conf.d/hostname # Set to the hostname of this machine HOSTNAME="sanctuary" -----/etc/conf.d/hostname lines 1-4/4 (END)----- Reproducible: Always Portage 2.1.3.19 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r9 x86_64) ================================================================= System uname: 2.6.22-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3000+ Timestamp of tree: Mon, 31 Dec 2007 14:30:08 +0000 app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.5.1-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 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 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=athlon64" CHOST="x86_64-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" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -pipe -march=athlon64" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.ISO-8859-1" LINGUAS="en de pl" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage_kjw" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X Xaw3d a52 aac acl acpi alsa amd64 amr apache2 arts berkdb bitmap-fonts bzip2 cairo caps cdparanoia cdr cli cracklib crypt ctype curl dbus dga doc dri dts dvd dvdr dvdread encode fam ffmpeg firefox flac fortran ftp gd gdbm gif gmp graphviz iconv id3 imlib isdnlog jbig joystick jpeg lame libnotify libwww lm_sensors mad maildir mhash midi mjpeg mmap mmx mp3 mp4live mpeg mpeg2 mplayer mudflap ncurses nls nptl nptlonly nsplugin ogg openexr opengl openmp pam pcre pdf perl player plotutils png posix pppd python qt3 quicktime readline recode reflection session skey sndfile sox speex spl sse sse2 ssl startup-notification svg szip tcpd tetex theora threads tidy tiff truetype truetype-fonts type1-fonts unicode usb v4l2 vcd vorbis wifi wmf x264 xface xine xinetd xml xmlrpc xorg xosd xpm xrandr xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de pl" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
touch /etc/init.d/hostname
root@daywalker:~ [17:38]# touch /etc/init.d/hostname root@daywalker:~ [17:38]# /etc/init.d/hostname start * Caching service dependencies ... /var/lib/init.d/depcache: line 1503: syntax error near unexpected token `{}' /var/lib/init.d/depcache: line 1503: ` depend() {}' * Can't find service 'checkroot' needed by 'crypto-loop'; continuing... * Can't find service 'modules' needed by 'crypto-loop'; continuing... * Can't find service 'checkroot' needed by 'hostname'; continuing... * Can't find service 'modules' needed by 'hotplug'; continuing... * Can't find service 'checkfs' needed by 'localmount'; continuing... [ ok ] checkroot * ERROR: Some services needed are missing. Run * './hostname broken' for a list of those * services. hostname was not started. ----- It doesn't look any better while booting.
you've got an error in one of your scripts or config files run `depscan.sh -d` and post the output as a log file to try and find out what file is screwed up
Created attachment 139750 [details] Output of depscan.sh -d Apparently, the script exits without error code.
then use the -u flag as well
Created attachment 139786 [details] Output of depscan.sh -d -u You might want to have a look at the relevant piece of code at line 1503 of /var/lib/init.d/depcache: echo "MTIME 1198398712" ( # Get settings for rc-script ... [ -e /etc/conf.d/net ] && \ [ "${SVCNAME%%.*}" = "net" ] && \ [ "${SVCNAME#*.}" != "${SVCNAME}" ] && source /etc/conf.d/net [ -e "/etc/conf.d/${SVCNAME}" ] && source "/etc/conf.d/${SVCNAME}" [ -e /etc/rc.conf ] && source /etc/rc.conf depend() { return 0 } # Actual depend() function ... return 0 depend() {} depend for x in ${RC_NEED} ; do need "${x}" done for x in ${RC_USE} ; do use "${x}" done ) ----cut here---- It appears that "depend() {}" is no legal shell code.
you snipped out the important part ... above the "echo mtime" line, there are 4 lines of code which will tell you which script is screwing up post those 4 lines or post your entire depcache as an attachment
Created attachment 139788 [details] depcache
Thx. Forget it. My fault. Can't program.