Bug 217243 - hddtemp fails to start on boot
Bug#: 217243 Product:  Gentoo Linux Version: unspecified Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: spock@gentoo.org Reported By: volkerarmin@googlemail.com
Component: Applications
URL: 
Summary: hddtemp fails to start on boot
Keywords:  
Status Whiteboard: 
Opened: 2008-04-11 00:48 0000
Description:   Opened: 2008-04-11 00:48 0000
hddtemp is added to the default run level.

On boot there is a hddtemp starting/started message. rc-status says that
hddtemp is running.

But it isn't. No hddtemp in ps aux, netcat says connection refused, kima&conky
don't see it.

Everything is fine after a /etc/init.d/hddtemp restart after login and it works
like it should.

Reproducible: Always

Steps to Reproduce:
1.emerge hddtemp
2.add hddtemp to default runlevel
3.boot and log in, try to access hddtemp with 
nc localhost 7634
see fail



merge --info
 * Overlay eclass overrides eclass from PORTDIR:
 *
 *   '/usr/portage/local/layman/kde/eclass/subversion.eclass'
 *
 * It is best to avoid overridding eclasses from PORTDIR because it will
 * trigger invalidation of cached ebuild metadata that is distributed with
 * the portage tree. If you must override eclasses from PORTDIR then you
 * are advised to run `emerge --regen` after each time that you run `emerge
 * --sync`. Set PORTAGE_ECLASS_WARNING_ENABLE="0" in /etc/make.conf if you
 * would like to disable this warning.
Portage 2.1.5_rc2 (default-linux/amd64/2007.0/desktop, gcc-4.2.3, glibc-2.7-r2,
2.6.24.3reiser4mcp65patch x86_64)
=================================================================
System uname: 2.6.24.3reiser4mcp65patch x86_64 AMD Athlon(tm) 64 X2 Dual Core
Processor 6000+
Timestamp of tree: Thu, 10 Apr 2008 10:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.5.1-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18.50.0.6
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -msse3 -pipe"
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/kde/4.0/env /usr/kde/4.0/share/config
/usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf
/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -msse3 -pipe"
DISTDIR="/var/portage/distfiles"
FEATURES="autoconfig candy ccache distlocks metadata-transfer parallel-fetch
sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LDFLAGS=""
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/var/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="/var/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/nouveau
/usr/portage/local/layman/kde /usr/portage/local/layman/einit
/usr/portage/local/layman/java-overlay /usr/local/portage
/usr/local/portage/gentoo-de"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip S3TC X Xaw3d a52 aac accessibility acpi addbookmarks
aiglx aim aio akode alias alsa altenburgcards amarok amd64 amr amrnb amrwb
aotuv aqua_theme archive asf athena audiofile autoreplace bash-completion
berkdb binary-drivers bluetooth boost bzip2 cairo cdda cddb cdinstall
cdparanoia cdr cdrom cdsound cegui cg clamav cli connectionstatus contactnotes
cpudetection cracklib crypt css cups curl dbus depth32 dhcp dio divx dnd
double-precision dpms dri dts dv dvb dvbplayer dvbsetup dvd dvdr dvdread eds
emboss emerald emul-linux-x86 encode evo exif expat exscalibar extra-cardsets
fame fasttrack ffmpeg fftw filter_default filter_legacy filter_light firefox
flac foomaticdb fortran ftp gadu gdbm gif gimp gimpprint glitz glut glx gnokii
gnutella gpgme gpm gtk gtk2 hal hddtemp highlight history iconv icq id3 id3tag
ieee1394 imagemagick imlib inotify irc irmc isdnlog jabber java javascript jce
jingle joystick jpeg jpeg2k kcal kde kdecards kdeenablefinal
kdehiddenvisibility kdepim kdm kexi kipi kqemu lame lapack lcms lesstif
libsamplerate libwww lirc lm_sensors logitech-mouse lzo lzw mad magic maps
matroska midi mikmod mime mixer mjpeg mmap mmx mmxext mng mp3 mp4 mpeg mpeg2
mplayer msn mtp mudflap mule musepack music nano-syntax ncurses neXt net newspr
ngui nls no-old-linux nocd nosendmail nowin nowlistening nptl nptlonly nsplugin
nvidia offensive ogg openexr opengl openmp oscar pam paste64 pch pcre pdf perl
physfs player plugins png pnm posix ppds pppd python qt3 qt3support qt4
quicktime rar readline recode reflection reiser4 reiserfs remix resolvconf
rogue rtc samba sametime scanner schedule scsi sdl sdl-sound sdlaudio sendfile
server session sharedmem slp smp sms sndfile sockets sounds spell spl sqlite
sqlite3 srt sse sse-filters sse2 sse3 ssl ssse3 startup-notification statistics
stats stencil-buffer stroke subp subtitles svg sysfs sysvipc szip tcpd
texteffect textures tga theora threads tiff timidity tk toolbar tools transcode
translator truetype tv tv_check tv_combiner tv_pick_cgi type1 unicode unzip usb
userlocales utempter v4l v4l2 vcd videos visualization vorbis webdav
webpresence wmf wmp wxwindows x264 xanim xcb xcomposite xemacs xext xface xine
xml xorg xosd xpm xrandr xscreensaver xskatcards xv xvid xvmc yahoo yiff yv12
zip zlib zsh-completion zvbi" ALSA_CARDS="emu10k1" 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="de"
LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="nvidia vesa vga v4l nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS,
PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #1 From Volker Hemmann 2008-04-11 00:49:14 0000 -------
Created an attachment (id=149358) [details]
/etc/conf.d/rc

------- Comment #2 From Volker Hemmann 2008-04-11 00:49:34 0000 -------
Created an attachment (id=149360) [details]
hddtemp config file

------- Comment #3 From Volker Hemmann 2008-04-11 00:50:29 0000 -------
*  app-admin/hddtemp
      Latest version available: 0.3_beta15-r3
      Latest version installed: 0.3_beta15-r3

------- Comment #4 From Mark Loeser 2008-04-11 02:56:11 0000 -------
Is there any log information you can provide as well, to help show the error?

------- Comment #5 From Volker Hemmann 2008-04-11 03:51:17 0000 -------
no :( 
there is nothing in /var/log/everything/current or any other logfile. The other
daemons, smartd, acpid, cron, twisted are starting fine and put a message into
the log. hddtemp does not (even when started after boot) - and i don't see an
option to turn that on.

rc-status
Runlevel: default
 acpid                                                                         
                         [ started  ]
 cpufrequtils                                                                  
                         [ started  ]
 dbus                                                                          
                         [ started  ]
 fancontrol                                                                    
                         [ started  ]
 hald                                                                          
                         [ started  ]
 hddtemp                                                                       
                         [ started  ]
 klive                                                                         
                         [ started  ]
 lm_sensors                                                                    
                         [ started  ]
 local                                                                         
                         [ started  ]
 metalog                                                                       
                         [ started  ]
 net.eth0                                                                      
                         [ started  ]
 net.lo                                                                        
                         [ started  ]
 nscd                                                                          
                         [ started  ]
 ntp-client                                                                    
                         [ started  ]
 smartd                                                                        
                         [ started  ]
 vixie-cron                                                                    
                         [ started  ]
 xdm                                                                           
                         [ started  ]

this is the stuff started in default - and with the exception of hddtemp all of
them start and work on boot.


------- Comment #6 From Volker Hemmann 2008-04-11 10:36:03 0000 -------
*grmpf* it reliable failed to start. Until I wrote this. Three boots later it
came up. So it does not fail always.

------- Comment #7 From Volker Hemmann 2008-04-11 13:00:29 0000 -------
but it does fail often enough - just booted an hour ago and hddtemp did not
start. It has its symlink in /var/lib/init.d/started, rc-status says that it is
running - but it isn't there - and nothing in the logs.

------- Comment #8 From Pavel Semenenko 2008-06-05 17:07:02 0000 -------
may be this is my issue.
Got this error.
In my case, this is because hddtemp starts before net.eth0 start, but in
/etc/conf.d/hddtemp
HDDTEMP_OPTS="-l 192.168.1.246" (ip of eth0 iface)

so I think it can't found interface and die.
only change in /etc/init.d/hddtemp
depend() {
        need localmount net
}

added net to 'need'

fix this problem.

------- Comment #9 From Michal Januszewski 2008-06-08 14:37:36 0000 -------
This indeed seems to fix the problem.  Added the 'net' dependency to the
initscript in CVS.