View previous topic :: View next topic |
Author |
Message |
Section_8 l33t


Joined: 22 May 2004 Posts: 627
|
Posted: Tue Feb 08, 2005 8:47 am Post subject: smartd starts twice at boot up |
|
|
Whenever I boot my system, smartd attempts to start twice. Here is a typical syslog:
Quote: | Feb 7 20:37:07 [fcron] adding file root
Feb 7 20:37:09 [rc-scripts] WARNING: "smartd" has already been started.
Feb 7 20:37:09 [smartd] smartd version 5.33 [i686-pc-linux-gnu] Copyright (C) 2002-4 Bruce Allen_
Feb 7 20:37:09 [smartd] Home page is http://smartmontools.sourceforge.net/__
Feb 7 20:37:09 [smartd] Opened configuration file /etc/smartd.conf_
|
Sometimes, I don't get any "smartd already started" warnings, but end up with 2 smartd processes running.
If I enter rc-update del smartd default, smartd doesn't start at all.
Does anyone have any guesses? |
|
Back to top |
|
 |
tdemarest Tux's lil' helper


Joined: 18 Mar 2003 Posts: 99 Location: California, USA
|
Posted: Wed Feb 09, 2005 8:51 am Post subject: |
|
|
Can you post the output of:
Code: |
grep -il smartd /etc/init.d/*
|
And what is your contents of /etc/conf/local.start and /etc/conf.d/smartd? |
|
Back to top |
|
 |
Section_8 l33t


Joined: 22 May 2004 Posts: 627
|
Posted: Wed Feb 09, 2005 3:30 pm Post subject: |
|
|
tdemarest - thanks for the response.
I'll post that tonight when i get home.
I worked around the problem last night by removing smartd from the default runlevel and adding /etc/init.d/smartd start to /etc/conf.d/local.start.
Kind of stupid, but at least I have 1 smartd starting now with no errors. |
|
Back to top |
|
 |
Section_8 l33t


Joined: 22 May 2004 Posts: 627
|
Posted: Thu Feb 10, 2005 2:14 am Post subject: |
|
|
I already grepped /etc, but didn't find any unexpected matches for smartd. Also unmerged smartctl, deleted all the smartd stuff from /etc, and re-emerged smartctl, but no joy.
Today for an unrelated reason I did a BIOS update and hoped maybe some SMART issue in the BIOS was somehow causing this, but it didn't make any difference.
Quote: | Section8 root # grep -il smartd /etc/init.d/*
/etc/init.d/smartd
Section8 root # cat /etc/conf.d/local.start
# /etc/conf.d/local.start:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/local.start,v 1.4 2002/11/18 19:39:22azarah Exp $
# This is a good place to load any misc.
# programs on startup ( 1>&2 )
#
# Started here because smartd in default runlevel starts 2 smartd's!!??
/etc/init.d/smartd start
Section8 root # cat /etc/init.d/smartd
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/smartmontools/files/smartd.rc,v 1.5 2005/01/03 14:18:58 vapier Exp $
opts="${opts} reload"
checkconfig() {
if [ ! -f "/etc/smartd.conf" ] ; then
eerror "You should setup your /etc/smartd.conf file!"
eerror "See the smartd.conf(5) manpage."
return 1
fi
return 0
}
start() {
checkconfig || return 1
ebegin "Starting S.M.A.R.T. monitoring daemon"
/usr/sbin/smartd -p /var/run/smartd.pid ${SMARTD_OPTS}
eend $?
}
stop() {
ebegin "Stopping S.M.A.R.T. monitoring daemon"
start-stop-daemon --stop --pid /var/run/smartd.pid
eend $?
}
reload() {
ebegin "Reloading configuration"
killall -HUP smartd &>/dev/null
eend $?
}
Section8 root #
|
|
|
Back to top |
|
 |
|