When do the perodic maintenance scripts run?

In previous versions of OS X, we could see at what time the scripts were running by looking the files:
com.apple.periodic-daily.plist
com.apple.periodic-weekly.plist
com.apple.periodic-weekly.plist
In fact I had a script for that:
cd  /System/Library/LaunchDaemons
PLISTBUDDY=/usr/libexec/PlistBuddy
$PLISTBUDDY -x -c "Print :StartCalendarInterval" com.apple.periodic-daily.plist
$PLISTBUDDY -x -c "Print :StartCalendarInterval" com.apple.periodic-weekly.plist
$PLISTBUDDY -x -c "Print :StartCalendarInterval" com.apple.periodic-weekly.plist
But is Mavericks, the content of these files have changed and the time is missing. Here is an example of the new files:
<?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>AbandonProcessGroup</key>
          <true/>
          <key>Label</key>
          <string>com.apple.periodic-weekly</string>
          <key>LaunchEvents</key>
          <dict>
                    <key>com.apple.xpc.activity</key>
                    <dict>
                              <key>com.apple.periodic-weekly</key>
                              <dict>
                                        <key>AllowBattery</key>
                                        <false/>
                                        <key>GracePeriod</key>
                                        <integer>14400</integer>
                                        <key>Interval</key>
                                        <integer>604800</integer>
                                        <key>Priority</key>
                                        <string>Maintenance</string>
                                        <key>Repeating</key>
                                        <true/>
                              </dict>
                    </dict>
          </dict>
          <key>LowPriorityIO</key>
          <true/>
          <key>Nice</key>
          <integer>1</integer>
          <key>ProgramArguments</key>
          <array>
                    <string>/usr/libexec/periodic-wrapper</string>
                    <string>weekly</string>
          </array>
</dict>
</plist>
Does anybody know where we can set the times for these scripts? The purpose is to allow the iMacs to sleep at night.

DlacVal wrote:
Does anybody know where we can set the times for these scripts? The purpose is to allow the iMacs to sleep at night.
There is no need for that. Unlike traditional *NIX OS's that run these jobs using cron, OS X now uses launch daemons to run these (& many other) jobs. The benefit is a cron job won't run if the computer is asleep or powered down at the time set for a job, while ones started by launch daemons are queued up & run the next time the computer is awake.
For more about this, see page 12 of the Mavericks Core Technology Overview pdf. (Also maybe check out the Timer Coalescing discussion beginning on page 8.)
The battery, priority, & other key/value pairs in the plists insure that the maintenance tasks will run only when they have the least impact on performance & power consumption.
If you want to see when they have run you can use Console to look at the daily.out, weekly.out, & monthly.out logs (in the /var/log section). You should see that they do not run at fixed times, nor should they.

Similar Messages

  • When downloading the trial, has anyone run into download issues?

    when downloading the trial, has anyone run into download issues?

    I remembered we have weird permission issues at work. Somewhere between my Home Windows 8 machine(horrible permissions issues with network), my home mac, email and my work computer, some permission got out of whack. The workaround for this was copying the file to my desktop, back to the exact same spot on the network. This resolved all issues.

  • Using automater to run the daily maintenance scripts

    I like to put my computer to sleep over night but the problem is that when I do that it doesn't run the maintenace scripts. Does anyone know how to do this with automater so that I can quickly run it before I put my powerbook to sleep?

    Derek
    I have my iMac go to sleep after an hour of non-use so it is shut down all night, usually.
    I downloaded the freeware program Anacron which runs the cron daily, weekly and monthly processes automatically when you wake your computer. I never have to worry about maintenance that way.

  • The overnight maintenance scripts and permissions errors

    I know that the weekly script modifies some permissions when it runs and then disk utility finds them and repairs them. I saw this one this time:
    2008-09-20 20:53:44 -0400: Permissions differ on "private/var/log/secure.log", should be -rw------- , they are -rw-r----- .
    2008-09-20 21:00:28 -0400: Permissions differ on "Library", should be drwxrwxr-t , they are drwxrwxr-x .
    2008-09-20 21:00:43 -0400: Group differs on "private/etc/cups", should be 0, group is 26.
    2008-09-20 21:00:43 -0400: Permissions differ on "private/var/spool/cups/cache/rss", should be drwxr-xr-x , they are drwxrwxr-x .
    The Library one I am not use to seeing. I wonder if the 10.5.5 update changed something.
    Note however, I ran the microsoft office 12.1.2 update before running this one two macbook pros (that are exactly the same). Only one macbook pro had this library thing, but, it hasn't run the weekly script yet either..
    anyone "in the know" know about this library thing?

    Well, I did the 10.5.5 update, ran Repair Permissions afterwards, and did not see /Library error. My /Library is drwxrwxr-t, as it is evidently meant to be. I believe the final "x" on directories is replaced with a "t" to mean that only the owner of files in that folder can delete them. I think it quite possible that it was changed to the more usual x by the the MS Updater. If so, the Repair Permissions process put it back to what it is supposed to be.
    Francine
    Francine
    Schwieder

  • When can i see when was the last MRP had run?

    Hi All,
    as per my understanding in MD03 we first run MRP & then we can see the list in MD04. so suppose now some MRP relevant parameters are changing then unless we run MD03 again , these changes wont reflect in MD04. is it correct?
    now i want to see when was last MD03 was run, then where can i see this?
    any help will be highly appreciated.
    Thanks
    Anubhab.

    Hi Anubhab,
    For MRP run there are several transactions usefull for bussiness requirement.( MD01, MD02, MD03,MD50 etc)
    so when ever there is any change in MRP relevant parameter, entry in planning file will happen and it will be executed in next MRP run,
    You can see the date and time of last MRP run in MD05.
    Hope it help you
    regards
    Ritesh

  • Error when generating the SQL statement while running the Query

    Hello SDN Mates,
    Am using three cubes in one infoset and build a query on that. Intially it was running fine, but now am getting error generating the SQL statement. Can you please throw some light on this. Your idea would be highly appreciated.
    Thanks and Regards
    Arun S

    Hi Arun
    is there any change in the objects (Check also the consistency of infoobject ) included in infoset, just make sure those are active, open the query in designer and check if no error/warning message are present
    Thanks
    Tripple k

  • Maintenance scripts

    Hi everyone,
    I have two questions that I need help with, both related to the running of maintenance scripts. I downloaded and installed "anacron" the other day. When I check terminal, I notice that the daily maintenance script runs between midnight and 1am each day. I'm pretty sure that the default time for Tiger is somewhere between 3 and 4 am, a time which is assumed to not have much user activity. If the maintenance scripts are now being run around midnight or 1am, times when I am likely to be using the computer, will I notice a system slowdown? I've heard that supplemental maintenance scripts programs, (like Onyx, anacron, macjanitor, etc) are not necessary.
    I would uninstall the program, but I've tried searching for the files that the readme says to delete, and I am unable to find them (using the Finder and EasyFind). I am not sure if the program has now replaced Tiger maintenance, and if I delete anacron then the Tiger scripts won't run anymore. Can someone provide me with a way to safely uninstall the program and ensure that the scripts will still run? Thank you.

    Hi Louis
    I have been running Anacron for several years with no problems. You will not know when it is running most of the time unless you hear your hardrive clicking. Since my computer sleeps through the scheduled times it normally would run, it will run the scrips at times after the time period exceeds the time limit set since last run. Daily scripts every 24 hrs., etc. Anacron will check every hour to test the time limit to see if it needs to run and will run the scripts when needed. Therefore, if your computer was sleeping or off less than 24 hrs. of the time the daily script was set to run or since the last time it was run and you wake it or turn it on 3 days later, the daily script will run approximately 15 minutes past the next hour.
    As I said, it has never given me a problem and you won't ever have to worry about the log files getting bloated.
    These scripts don't really need to be run that often and some people prefer to use manuel programs such as ONYX to run them on occasion. That's probably more of a personal preference. I choose not to want to think about it and let Anacron do it's thing. If I ever think it may be causing problems, I won't hesitate to remove it. But so far on 3 computers, no problems.
    But if you feel the need to uninstall it follow this:
    To uninstall Anacron, go to Hard Drive/Library/LaunchDaemons/anacron.plist. Move the file "anacron.plist" to the desktop and restart the computer. Then you can trash anacron.plist file.
    Or, search in the Finder or with spotlight for Anacron. You will see the "anacron.plist" file. Delete it and restart the computer. Then you will be able to empty the trash.
    I can't really say how much this and permission repair has really helped, but I can tell you that for 3 years I have virtually no problems with my computers and have never had to reinstall the operating system on any of them other than updating or moving to the newer OSX.

  • Cron, cronX and maintenance scripts

    In my old iBook I used cronX (I think that's the name) to set the unix maintenance scripts to run when the computer is likely to be awake. I don't know that those things bought me anything, but can't hurt, right?
    My problem - I'd like to get a current version for the new MacBook (wow! - way cool!) but neither Google nor VersionTracker have a listing for any version of cronX. I recall it came from somewhere in Europe so perhaps that's why? Also have heard of MacJanitor and maybe a couple of other apps that will do a similar function.
    Can anyone point me to a source for cronX or similar?
    Thanks!
    MacBook 13" 2.0GHz   Mac OS X (10.4.6)  

    Oops - got lucky searching for something else!
    It's cronniX from http://h5197.serverkompetenz.net:9080/abstracture_public/projects-en/cronnix/
    MacBook 13" 2.0GHz   Mac OS X (10.4.6)  

  • Periodic Maintenance Scripts

    I read this thread http://discussions.apple.com/thread.jspa?messageID=3136865&#3136865
    but it is closed so I coldn't post an additional question.
    In understand about how the 3 maintenance scripts are supposed to work (Thank you Dr. Smoke!), but for a variety of reasons I need to put my MacBook Pro to sleep at night. Last night, I set the Energy Saver options to wake up at 3:00 AM, having previously checked to see that the daily script was set to run at 3:15. The computer goes to sleep after one hour, so that should have given enough time for the script to run.
    This morning the daily script had NOT run, and the Console log is filled with entried like this:
    Mar 21 03:30:47 administrators-computer DirectoryService[49]: Active Directory DS Plugin: Kerberos Time Skew Too Large. Check Date/Time!\n
    (There are no entries between 3:00 and 3:30). The computer was not connected to the network where the AD lives (that is at work). Also, this morning when I woke the computer up manually, the clock was set at 3:40.
    I can continue to run the daily script by hand, but I would rather not. Any help will be appreciated.
    Walt

    Make your life simpler. There are some excellent alternatives that completely automate running the maintenance scripts for you. You'll find them at VersionTracker or MacUpdate.
    Macaroni - Shareware $8.00
    Anacron - Freeware
    PseudoAnacron - Freeware
    These utilities check if the periodic maintenance scripts were run at their scheduled times, and if not runs them immediately. They assure the scripts are run when your computer is turned on so you needn't worry about scheduling the computer to wake up at a certain time.
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • Maintenance scripts question

    I was just wondering if the daily, weekly, and monthly maintenance scripts will run overnight if I have the 'puter set to sleep after an hour or so. In other words, will it wake itself to do maintenance? Thanks!

    If you would like to forget about the problem then download and install either Macaroni or PseudoAnacron - VersionTracker or MacUpdate. They will automatically run the scripts whenever the computer becomes available if they did not run at their scheduled times.
    Kappy's Personal Suggestions for OS X Maintenance
    For disk repairs use Disk Utility. For situations DU cannot handle the best third-party utilities are: Disk Warrior; DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.0 is now Intel Mac compatible. TechTool Pro provides additional repair options including file repair and recovery, system diagnostics, and disk defragmentation. TechTool Pro 4.6.1 is Leopard compatible; Drive Genius is similar to TechTool Pro in terms of the various repair services provided. The current version, 1.5.1, is Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.
    OS X automatically defrags files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems.
    I would also recommend downloading the shareware utility TinkerTool System that you can use for periodic maintenance such as removing old logfiles and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack. If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the commandline. Note that presently AppleJack is not compatible with Leopard.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand. I also recommend booting into safe mode before doing system software updates.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
    1. Retrospect Desktop (Commercial - not yet universal binary)
    2. Synchronize! Pro X (Commercial)
    3. Synk (Backup, Standard, or Pro)
    4. Deja Vu (Shareware)
    5. PsynchX 2.1.1 and RsyncX 2.1 (Freeware)
    6. Carbon Copy Cloner (Freeware - 3.0 is a Universal Binary)
    7. SuperDuper! (Commercial)
    8. Data Backup (Commercial)
    The following utilities can also be used for backup, but cannot create bootable clones:
    1. Backup (requires a .Mac account with Apple both to get the software and to use it.)
    2. Toast
    3. Impression
    4. arRSync
    Apple's Backup is a full backup tool capable of also backing up across multiple media such as CD/DVD. However, it cannot create bootable backups. It is primarily an "archiving" utility as are the other two.
    Impression and Toast are disk image based backups, only. Particularly useful if you need to backup to CD/DVD across multiple media.
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac Maintenance Quick Assist.
    Referenced software can be found at www.versiontracker.com and www.macupdate.com.

  • Maintenance scripts, whats that all about?

    In this case I do not actually have a problem, but have heard about on other forums recently something about scripts running in the middle of the night, assuming you leave your computer on that somehow magically keep your Mac working properly. I did a search on the apple forums for this but to no avail.
    Anyone know what this is about? Does it actually work, and if so why?
    From my perspective it seems like one could cause more problems by always leaving a pc on, due to power failures or surges etc.
    Thanks in advance for some insight on this, or links where I could learn more.

    Yes, the Keebler elves are busy late at night keeping the computer problem free!
    There are three maintenance scripts that Unix runs on a daily, weekly, and monthly schedule. The scripts are run automatically between 3 and 5 am provided the computer is turned on and not sleeping. The scripts perform certain general maintenance chores such as deleting old log and temporary files, rotating the logs, and updating the lookup database.
    These maintenance activities prevent log files from growing to unwieldy size which also tends to keep the logs from becoming corrupted. This does help keep OS X running smoother, but they hardly keep OS X completely free of problems. Other efforts are needed:
    Kappy's Personal Suggestions for OS X Maintenance
    For disk repairs the best third-party utility is Disk Warrior. DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption. However, DW is not yet compatible with Intel Macs. TechTool Pro provides additional repair options including file repair and recovery, system diagnostics, and disk defragmentation. TechTool Pro 4.5.1 is Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility called Macaroni that will automate the maintenance activity regardless of whether the computer is turned off or asleep.
    OS X automatically defrags files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems.
    I would also recommend downloading the shareware utility TinkerTool System that you can use for periodic maintenance such as removing old logfiles and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack. If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the commandline.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand. I also recommend booting into safe mode before doing system software updates.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is significant):
    1. Retrospect Desktop (Commercial - not yet universal binary)
    2. Synchronize! Pro X (Commercial)
    3. Synk 6 (Shareware)
    4. Deja Vu (Shareware)
    5. SuperDuper (Commercial)
    6. Carbon Copy Cloner (Freeware - not universal binary.)
    7. LaCie SilverKeeper (Freeware - not universal binary)
    8. RsynchX 2.1 and PsyncX 2.2.1 (Freeware)
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac Maintenance Quick Assist.
    Referenced software can be found at www.versiontracker.com and www.macupdate.com.

  • Mac OS X maintenance scripts and multiple user accounts

    Hi everyone
    Just wondering how the default maintenance scripts scheduled to run in the early morning works with multiple user accounts. Our Macs at home all have multiple user accounts (one for each of us) and I'm wondering whether the scripts work their magic across all accounts (assuming the computer itself is switched on AND not asleep).
    Also, is the behaviour the same regardless of Mac OS X version? More specifically we're using snow leopard, lion, mountain lion, and maybe shortly mavericks.
    Thanks!
    Joe.

    The maintenance scripts run by periodic perform system tasks. They do nothing in a user's account (unless you modify the scripts or create your own). They are primarily designed for long lived systems (servers). There isn't any magic nor would a normal mac users find any differences whether they ran or not.
    In all the operating system versions that you mention, the scripts will run when the computer wakes, assuming that the computer was turned on before the prescribe times.

  • IPhoto crashes when emptying the Trash and then quitting iPhoto

    When I empty the iPhoto trash and then quit iPhoto, it crashes every time. When I reopen it the trash is again full.
    Also, the items in the trash are blank squares.
    Any ideas?

    Ronniebel:
    Have you tried the usual maintenance procedures? Repair disk permissions, repair the disk with Disk Utility while booted into the system installation disk that came with you Mac, run Tiger Cache Cleaner's medium cleaning routine or OnyX to clean out the various user caches and the cron maintenance scripts.
    Also download and run BatChmod on the iPhoto Library folder with the settings shown here, substituting your account name for mine. You can either type in the path to the folder or just drag the folder into that field.
    Another possibility is to run iPhoto Library Manager and use its File->Rebuild Library menu option to rebuild the library.
    Next, move the iPhoto Library folder to the Shared folder and set the access so other users can read and write. Then log into another account on you Mac, fire up iPhoto with the Option key depressed and locate and open the library in the Shared folder. See if you can delete the trash there and operate normally. If you can then it's something to do with your other account. If you can't then it's the library itself.
    Good luck.

  • Root crontab no system maintenance scripts

    Server: HP DL380, Redhat 4 update 6 (download from linux.oracle.com)
    Today I checked crontab and noticed that there are no system maintenance scripts running under root, to e.g. rotate log files, etc. Is this normal, any suggestions please?
    Best regards

    Check the directories below. Linux cron has directories for hourly, daily, weekly and monthly root scripts where you can drop scripts that you want to run periodically. This is handy if you do not want to maintain a root crontab file.
    ll /etc |grep cron
    -rw-r--r-- 1 root root 329 Sep 28 2004 anacrontab
    drwxr-xr-x 2 root root 4096 Mar 27 15:37 cron.d
    drwxr-xr-x 2 root root 4096 Apr 7 16:08 cron.daily
    -rw-r--r-- 1 root root 0 May 12 2007 cron.deny
    drwxr-xr-x 2 root root 4096 Sep 20 2004 cron.hourly
    drwxr-xr-x 2 root root 4096 May 12 2007 cron.monthly
    -rw-r--r-- 1 root root 255 Sep 20 2004 crontab
    drwxr-xr-x 2 root root 4096 Nov 28 2007 cron.weekly

  • UCCX 7 HA Creating a Permanent User Prompt from a Maintenance Script

    Hi,
    I have script that records a prompt, names the wav file a puts it in the prompts directory. This is used for a special message for a contact centre script, these are usually temporary messages and there is an option in the same maintenance script to silence this prompt. The customer wants to be able to change the permanent prompts like the welcome prompt however when I restart the primary contact centre CRS engine the special message prompt is gone from the prompts folder in windows. It was never in the list of prompts when I listed the prompts in the app admin GUI page. Is there any way I can copy this recorded prompt from the windows folder to the prompt repository so that if the contact centre is restarted the prompt is not deleted.
    I have attached a copy of the script so you can see how i'm doing this, When the call comes in to the script 'Main_Menu' the user presses 1, the call goes to the 'System_Menu' the user presses 1 again to go to 'Record_System_Prompt', from here you record the system message and the script puts a wav file called IECHA_IT_Sys_Mess.wav in to C:\Program Files\wfavvid\Prompts\user\en_GB. But this wav file is only in the windows folder not in the list of prompts in the UCCX appadmin page.
    Thanks
    Regards
    Neil

    Hi Neil
    This is quite a common query; basically you should never write to the wfavvid folder directly. If you upgrade to 8.0, you'll find you can't do that anyway.
    Instead of using a write document step or whatever to write to disk, so this:
    1) Create a User variable
    2) Use a 'get user' step to populate that variable with a user reference, you will need to specify a user ID or extension number on this step that refers to a user configured with Supervisor or Administrator rights. I usually allow the actual end user to log in with their extension and PIN, and use those creds to get the user. Other engineers just create a user called 'PromptUploader' or similar, and give that the required rights.
    3) Once you have the 'get user' populating the user variable, under it's success branch add a 'Authenticate User' step to authenticate the user refernce in conjunction with a PIN or password (either that you gathered from the caller's DTMF or a static string)
    4) Under the success branch for that, you can then use the 'Upload Prompt' step to upload the prompt you have recorded.
    Regards
    Aaron
    Please rate helpful posts...

Maybe you are looking for

  • How to programmatically update the roles in UserPrincipal?

    Hi all, I am having a problem with form based authentication. I use tomcat. I want to show or hide content on my site based on the roles that the user belongs. In fact, I have already done this with isUserInRole(aRole) in the servlet side and with pa

  • ALV:   how to display only subtotals lines in theoutput

    hi in the alv list output if we display subtotals based on 3 feilds out of 10 we see subtotals (sum) based on the end of each field now i want to display only the lines which are displayed as subtotals in the output we have parameter totals_only(1) t

  • CUCM to CVP calls. CTI-RP vs Route Pattern

    CVP 9 or above CUCM 9 or above Requirement: 1. Consultive Warm Transfer - The agents to be able to transfer calls to a a different department by dialing an internal number and wait in the queue until answered. 2. Internal - Back-office people to dial

  • HT4279 cinema display backlight repair

    I have a 27" display that the backlight seems to be failing on.  Some mornings the display comes on just fine but others it either fails to come on or it comes on very dimly.  I suspect the LED backlight may be on the verge of failure but was wonderi

  • Weblogic7.0 starting is taking tomuch of time

    i am using windows 2000 server, if i start weblogic 7.0, it is taking almost 10 minutes to start. i have almost 200 enteprise deploy, i had made single ear to deploy. if anybody is haveing workaround , please help me out.....