|
|
cron jobs and smartd
I hadn't fully finished checking out the smartmontools package when I posted this hint - there's a second component to it all,
smartd.smartd removes the need to have smartctl run from a cron job - all you need to do is ensure that smartd runs at startup, and you modify the conf file appropriately (man smartd)It will then check, by default, your drives every half an hour and if there's any change in the status, an error will be printed to syslog - viewable with Console.app The only problem I found with having smartd launch at startup, is that due to the way it's written, you can't launch it using launchd the new OS X Tiger way as upon launching it forks and quits it's parent process, thereby making launchd think it's quitting, whereupon it tries to relaunch it. Once it goes through this 10 times, launchctl removes smartd from the launchd list...---
cron jobs and smartd
Make a shell script that starts the daemon then sleeps forever. Install the script for launch at startup instead of the daemon.
cron jobs and smartd
Could you point us to a resource that explains how to do this?
cron jobs and smartd
A shell script that does the necessary things would be:
It would be better to use the full path of the smartd executable to avoid path issues. Someone familiar with the process of installing daemons to run at startup, please tell us how it is done; my expertise on that is dated. Apparently Apple does not want us to use rc or SystemStarter like we used to.
Brendan. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|