On Dec 6, 2014, at 1:42 AM, Ubence Quevedo <[email protected]> wrote:

> 
>> What happens if you run smartd manually in debug mode and without forking:
>> sudo port unload smartmontools
>> sudo /opt/local/sbin/smartd -n -d -c /opt/local/etc/smartd.conf
>> 
>> When I ran manually without sudo smartd complained about not being able to 
>> write a state file to:
>> /opt/local/var/lib/smartmontools/smartd.Hitachi_HDS722020ALA330-JK1174YAK4MZ3W.ata.state
>> 
> 
> When I ran the smartd like you did from the command line like the above, it 
> seems to work properly:
> 
> Ubences-Intel-iMac:etc uquevedo$ sudo /opt/local/sbin/smartd -n -d -c 
> /opt/local/etc/smartd.conf
> smartd 6.2 2013-07-26 r3841 [x86_64-apple-darwin14.0.0] (local build)
......
> There is an entry on the Mac Ports Trac site for an upgrade to 6.3 here:  
> https://trac.macports.org/ticket/45982
> 
> I’m going to try compiling smartmontools from source and give that a try to 
> see if I still run into the same issue and hope that the 6.3 update whenever 
> it is released from Mac Ports will fix this problem.
> 
> I’ll also likely post a bug report since there doesn’t seem to be one for 
> this already.

I noticed smartd has a -n no-fork flag. I'm testing with this modified launchd 
script:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"; >
<plist version='1.0'>
<dict>
<key>Label</key><string>org.macports.smartd</string>
<key>ProgramArguments</key>
<array>
        <string>/opt/local/sbin/smartd</string>
        <string>-n</string>
        <string>-c</string>
        <string>/opt/local/etc/smartd.conf</string>
</array>
<key>KeepAlive</key><true/>
</dict>
</plist>


Regards,
Bradley Giesbrecht (pixilla)

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
macports-users mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to