MacJanitor

Need to continue to use MacJanitor or Onyx type apps with Snow Lep.?

MacBook 2.26, MacBook 2.0, iMac 17FP 1Ghz, iBook 500, Mac OS X (10.6.2)

Posted on Feb 26, 2010 10:33 AM

Reply
14 replies

Feb 26, 2010 10:55 AM in response to Allan Eckert

utility to run the system's daily, weekly, and monthly maintenance scripts.

These scripts are normally run between 3am and 5am, and will not be run if you shut off your Mac at night. This can allow log files to grow very large, and prevent system databases from getting backed up.

With MacJanitor, you can run these scripts 'by hand' periodically without having to use the Terminal to keep your Mac OS X machine in top racing form.

Excellent for laptop users and others who shut off or put their Macs to sleep at night.

Feb 26, 2010 3:26 PM in response to Ron R

If you restart the computer often, there is no reason to run these scripts at all. They no longer deal with log files (except the monthly script rotates fax logs, only relevant if you regularly use your Mac as a fax machine). These scripts never backed up system databases.

These scripts are very minor housekeeping. They have nothing to do with keeping your Mac "in top racing form".

Feb 27, 2010 11:31 AM in response to Jeffrey Jones2

They no longer deal with log files (except the monthly script rotates fax logs,


Hmmm! Interestingly, here's the output from today's daily script (I run 24/7 without sleeping the computer:

+Sat Feb 27 03:15:00 PST 2010+
+Removing old log files:+
+Removing old temporary files:+
+Cleaning out old system announcements:+
+Removing stale files from /var/rwho:+
+Removing scratch fax files+
+Rotating accounting logs and gathering statistics:+

Maybe I'm misunderstanding what you're saying, but it appears that it still deals with log files.

BTW, run these in the terminal app to run those scripts (delete any if you don't want to run it):

*sudo /usr/sbin/periodic daily weekly monthly*

Feb 27, 2010 8:23 PM in response to baltwo

Let’s take this one line at a time.
Removing old log files:

This line would be followed by a list of the files removed. The list is empty, indicating no files were removed (unless you edited the report). The only files that would have been removed, if there were any, are crash reports (in /Library/Logs/CrashReporter ) that have not been accessed in at least 60 days.

Removing old temporary files:

Again, the list of removed files is empty. This would remove temporary files in /tmp that have not been accessed in at least 3 days. The /tmp directory is cleared as part of start-up, so a computer that is shut down every night will never have any file to delete here.

Cleaning out old system announcements:
Removing stale files from /var/rwho:

These are both somewhat anachronistic chores that apply to computers used as Unix workstations, in a cluster with other Unix workstations.

Removing scratch fax files

Irrelevant, unless you regularly use your computer as a fax machine.

Rotating accounting logs and gathering statistics:

I don’t have this line in my reports. You must have “system accounting” turned on. Most users would not have this. This step might be important with accounting enabled, but it is irrelevant for most people.

In Leopard/Snow Leopard most system logs are handled by a different utility, newsyslog, that runs every 30 minutes. It has a list of log files that it watches, and rules for each for when to rotate. Most logs are rotated when they reach 1MB. The file /var/log/system.log is rotated only at midnight, so that might be a problem for computers that are never awake at midnight. Running periodic daily won’t do anything about that.

Feb 27, 2010 9:06 PM in response to baltwo

The only "log" files daily deals with are the system accounting logs. I didn't think of those because I've never used system accounting, and I doubt that many people do. Nothing else that daily cleans up could be described as a "log file". The reference to "log files" in the first line of the report is a relic from earlier versions when the daily scripts did indeed deal with log files. That has all been moved to newsyslog. That step in the daily scripts now only deals with old crash reports, not log files.

Feb 27, 2010 9:15 PM in response to baltwo

Years ago I ran ManJanitor because of its usefulness.

However, the launchd application initially with Mac OS X 10.4, eliminated the ultimate need for running those crontab scripts.

In other words:

1. In the beginning UNIX made lots of log files, and the Engineers would scrutinize these logs because those computers were big and required teams of personnel to maintain.

2. As UNIX was ported to workstations, log files were less frequently scrutinized, and small scripts were written to perform system maintenance and archive old log files. These utilities were executed daily, weekly, and monthly, all managed by the cron utility. They were also executed in the middle of the night when few people used those machines.

3. As UNIX was ported to the laptop, those cron table entries (crontabs) were not executed when the laptop was sleeping. MacJanitor stepped in and created their great utility to run these for you on command.

4. As Apple ported its OS to smaller and smaller devices, they needed a better way to manage these processes, and a host of other requirements that are outside the scope of this discussion thread. The launchd application was born.

5. Launchd is smart enough to detect that it should execute a process daily, but the computer has been sleeping for two days. It will invoke the process upon wakeup.

6. Etc, etc, etc . . .

Feb 28, 2010 5:07 AM in response to baltwo

One of the updates for 10.5. fixed it so they would run scripts at the correct time if it was off.
Here is a start to a kbase, and I noted it only lists up to 10.5
http://support.apple.com/kb/HT2319?viewlocale=en_US

Message was edited by: powerbook1701

Message was edited by: powerbook1701

MacJanitor has more info on what it does:
http://personalpages.tds.net/~brian_hill/index.html

Message was edited by: powerbook1701

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.

MacJanitor

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