Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Jan 2006 17:00:01 -0800
From:      Doug Barton <dougb@FreeBSD.org>
To:        Mike Jakubik <mikej@rogers.com>
Cc:        ports@freebsd.org, martines@rochester.rr.com
Subject:   Re: FreeBSD Port: sysutils/smartmontools (more RCng problems)
Message-ID:  <43BF1291.2070209@FreeBSD.org>
In-Reply-To: <43BF0B37.6000309@rogers.com>
References:  <43BDB619.5020104@rogers.com> <43BF02F1.6050007@FreeBSD.org> <43BF0B37.6000309@rogers.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Mike Jakubik wrote:
> Doug Barton wrote:
>> Mike Jakubik wrote:
>>> This is yet another port that does not work properly because of the 
>>> recent RCng commits in 6-STABLE. Smartd does not startup on bootup, 
>>> it has to be manually started.
>>
>> Ok, I installed this port and tested it myself, and the problem is the 
>> hard coded value of smartd_enable at the top of the script. For 
>> reasons I don't quite understand yet, hard coding the value in the 
>> script affects the boot-time operation of the script differently than 
>> on the command line.
>>
>> The good news is that the fix is simple:
> 
> I tried the patch

I wasn't suggesting that you try the whole patch, but if you want to do
that, 'mv smartd.sh smartd.sh.in' after applying the patch.

The only thing you actually need to test is whether changing the defaults
from hard coded to checking to see if they are already set does the trick.
Brooks just reminded me that the variables should look like this instead of
what I wrote:

smartd_enable=${smartd_enable-NO}
smartd_pidfile=${smartd_pidfile-/var/run/smartd.pid}

hth,

Doug

-- 

     This .signature sanitized for your protection





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43BF1291.2070209>