FreeBSD Port: sysutils/smartmontools (more RCng problems)

Doug Barton dougb at FreeBSD.org
Fri Jan 6 17:00:09 PST 2006


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




More information about the freebsd-ports mailing list