OS X Maintenance/ "cron jobs"

I am a huge fan of maintenance routines for my Macs. I am a semi experienced Mac user who is exploring the in-depth world of computers, especially UNIX and OS X. I currently use OnyX to run maintenance routines manually on my computer because my computer is usually turned off or asleep when the built in routines start. OnyX is considered a "Multi-Fuction Utility" which they say can do more damage then good when used an inexperienced user. My machine right now, since I have started using OnyX is running perfectly fine, I just want to make sure I don't do anything to mess with it. Do you guys have any feeling about these Utilities like OnyX, MacJanitor, Cocktail, or Cashout X? Is there anything that I should stay away from? Any opinions at all will help, I started this thread for everyone is wondering or curious about these Utilities. I think it is important to keep the computer in "tip top" shape.

Jon

PS I posted it in iBook G4 because I have seen many people with iBooks who can benefit from these Utilities. Some info about these routines can be found at the link below:

http://www.macattorney.com/ts.html#Anchor-Free-45980

Posted on Nov 16, 2005 8:03 AM

Reply
13 replies

Nov 16, 2005 8:51 AM in response to --JB--

Actualy, OS X was upadated to run the cron jobs at a different time if the computer was asleep/off during the regular scheduled time.

Macjanitor is just a GUI front to manualy run the cron jobs.

Onyx-I wouldn't enable/run any of the other functions unless you understand what it is they are doing. Clearing the caches every now and then and running the daily/weekly/monthly maintenace would be safe.

The other 2-no idea what they do. I suspect cocktail has far more bells and whistles than the average user needs.

Nov 16, 2005 10:58 AM in response to John Blayne

John,

I do understand for the most part the maintenance routines that are daily, weekly, and monthly. OnyX improved the performance of my computer, now it is in good shape. I was wondering if anyone had any additional information on things like whether clearing cashes/logs cause problems. Reseting Mac Help or things of that nature. Does it have any real benefit. I have heard that for some people it does others it doesn't. Anything basically from programs like OnyX that work well.

Jon

Nov 16, 2005 11:15 AM in response to --JB--

JB -

Regarding clearing of logs, if you were having problems with the operating system or certain programs, you might not want to clear the logs (or at least copy them before you cleared them) because they may be helpful in trying to diagnose and solve that problem you're having.

On the other hand, if you're not having any problems, clearing the logs wouldn't be that critical.

Patrick

Nov 25, 2005 10:55 AM in response to --JB--

Hi Jon,

" Do you guys have any feeling about these Utilities like OnyX, MacJanitor, Cocktail, or Cashout X? Is there anything that I should stay away from?"

Most of the features in OnyX (and other "cache-cleaner utilities") should not be used on a regular basis, because they are redundant, because they have become useless with the new OS enhancements, or simply because they are tasks that are useful when troubleshooting a problem, but of no use as maintenance.

Even the only task that you still have to run once a month or so, is not so very necessary: running the Daily, the Weekly and the Monthly Periodic ("cron") scripts. Neglecting it would not affect computer's performance: only disk space.

However, there is NO OnyX feature that could damage your OS in any way. All those commands are safe, and only two or three of them can cause a slight, completely harmless, side-effect that would disappear at once.

You should often visit OnyX's site in order to always use the latest version.
Pretty much everyone of those small utilities work the same way and are as safe. They are just a nice GUI running the same Terminal commands.

--
DiskWarrior, TechTool Pro and such powerful (and expensive) utilities are another thing. Running them can indeed cause damage, in case of a power outage for example, as they get very deeply into all levels of the System files.

Good maintenance!
Axl

Dec 17, 2005 8:46 AM in response to --JB--

Here is a document from Bmer from MacOSG who wrote about OnyX's Terminology. I thought that it would be important as reference to put in here (I asked for permission first)

One utility we recommend a lot is OnyX. The following terms are from OnyX's Help menu. These explanations should help you understand what each function does.

The 'Maintenance' panel allows you to run System maintenance scripts, verify and repair permissions and optimize the System.



Verify and Repair permissions: This option verifies System file permissions on the hard disk and repairs them as necessary. Incorrect permissions can result from certain installers or after a System crash, and might cause unexpected behavior. OnyX restores the permissions of all System files and Apple-installed software.

Daily script: This script (daily) removes scratch and junk files (/tmp, /var/tmp and /var/rwho), backs up the NetInfo database, checks subsystem status, and rotates the System.log file. By default, this script is executed every day at 3:15 AM, if the computer is turned on.

Weekly script: This script (weekly) rebuilds the Locate and Whatis databases, restarts the Syslog process and rotates the ftp.log, ipfw.log, lookupd.log, lpr.log, mail.log, netinfo.log files and access_log and error_log files in the httpd folder. By default, this script is executed every Saturday at 4:30 AM, if the computer is turned on. This operation might take a few minutes; please be patient..

Monthly script: This script (monthly) restarts the syslog daemon, runs login accounting and rotates the wtmp.log and install.log files. By default, this script is executed the first day of every month at 5:30 AM, if the computer is turned on.

Optimize the System: This command allows updating of information in System libraries and executables when new files are added to the System. The -force option forces updating of all files. With the force option, some System settings might be changed, but the contents of the Keychain and the passwords themselves will not be modified. It is recommended that you restart the computer after executing this command.

The optimization of the system uses the update_prebinding command. However, the launching of this operation is not really necessary, because Mac OS X does it as soon as it's necessary, in the background.

Update Locate database: This option allows updating of the Locate database (/private/var/db/locate.database). Locate is a Unix tool that allows searching for files very rapidly. Rather than scanning a disk, it uses a database that indexes all file paths in the System, and returns the results almost instantaneously. Updating the Locate database might take a few minutes.

Update Whatis database: This option allows updating of the Whatis database (/usr/share/man/whatis.db). Whatis is a command whose database facilitates searching for man pages (Unix documentation provided with Mac OS X).

These two databases are also updated when the weekly maintenance script is executed.

The 'Cleaning' panel allows removal of the various files and folders scattered about your hard disk.



Browsers' Cache: This option deletes the files created when loading Internet pages in the Web browser.

Download Cache: This option deletes the files created when files are downloaded from the Web.

Browsers' History: This option deletes the history of pages that Web browsers use to make pages load more quickly.

Cookies: Many Web sites store small files, named 'cookies', on your computer, to make return visits easier, for example, a transaction between you and a commerce site online, to avoid having to type your name and password when returning to a forum... etc. This option deletes those cookies.

Bookmark icons: Many Web sites specify a icon (also called a "favicon"), which displays in the Address bar and alongside Bookmarks and addresses in the History menu. This option deletes those icons.

System Logs: This option deletes the various System logs stored in the folders /Library/Logs/, /Library/Logs/AppleFileService and /Library/Logs/DirectoryService/.

Applications Logs: This option deletes the applications logs in the folder ~/Library/Logs/.

Archived Logs: When the periodic scripts (daily, weekly and monthly) are run, log files are archived and compressed. There may be up to 7 archives per log. This option allows you to remove all of the compressed archives.

System CrashReporter: This option deletes System CrashReporter logs stored in the folder /Library/Logs/CrashReporter/.

Applications CrashReporter: When an application crashes, a log file is created in the folder /Library/Logs/CrashReporter/ in your Home folder. The daily script deletes log files not changed in the last 60 days. This option allows you to remove all files in the folder.

After clearing caches, restart the computer.

User Cache: This option allows you to remove certain files in the folder Library/Caches/ in your Home folder.

System Cache: This option allows you to remove System caches. Clean removes only a few files. Clear All removes the contents of the following folders: /Library/Caches/ and /System/Library/Caches/.

Recent Servers: Every time you connect to a computer, its address is stored in a file in the folder /Library/Recent Servers/. This option allows you to remove all such files.

Recent Items: This option allows you to remove the recent items in the File menu > Open Recent of these applications: QuickTime Player, TextEdit, Preview, iMovie, iPhoto, Xcode, PackageMaker, Icon Composer, Property List Editor, Interface Builder and Script Editor.

Reset Mac OS Help: This command deletes certain files that might cause problems when you want to show the Mac OS Help.

Links between documents and applications: Since Mac OS X 10.3.4, an alert message appears when you launch a new type of document for the first time. The link between this type of document and the application executed is stored in the "com.apple.LaunchServices.6B.csstore" file in the folder /Library/Caches/. This command deletes this file and reinits the links between your documents and the applications.

Be careful: the following command is irreversible.

Hidden Files .DS_Store: An invisible file .DS_Store maintains various information regarding the folder in which it is located (icon view and positions). On other systems, those files are not invisible. You can choose to remove them before burning a CD-ROM, for example... This option deletes all .DS_Store files from the hard disk

core.xxx Files: This option allows you to remove all core.xxx files located in the invisible folder /cores/.

Temporary Files: This option allows you to remove the temporary files in the folder /private/var/tmp/.

After the following VM operation, restart the computer.

Virtual Memory files: This option allows you to remove all swapfile files of the folder: /private/var/vm/.

Force empty Trash: Some files or folders in the trash will refuse to be deleted, notably when they are locked or if you don't have write permission for them. This option removes the contents of the Trash, regardless of privileges. The option 'Securely Delete', destroys the items before deleting them. After this command, the Finder is relaunched to update the Trash icon.

Jon

G4 1.33Ghz iBook, G4 iMac 1Ghz, G3 500Mhz iBook, Macintosh 128K, eMate... Mac OS X (10.4.3) Airport Express, Palm Zire 72, Minolta Dimage X31, iSight, and more

Dec 17, 2005 9:43 AM in response to --JB--

Thanks Jon,

Yes, this comes from a previous version of OnyX for Panther
(credits go to the author Joël Barrière and David C Lawhon who wrote the English version)
and it is quite a clear approach.

Some details have changed since Tiger,
some more features were added,
and some of the tasks are now useless.

If you are interested in this kind of software, you can learn a lot with Maintain too, and its collection of scripts that you can edit.
See also the excellent Yasu, perhaps the best approach of all, as the features that become useless are taken off at every update, keeping the interface so simple and easy to use.
On the opposite side, another excellent way to learn a lot is CLIX.

Have fun!
Axl

243/2689

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

OS X Maintenance/ "cron jobs"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.