How to start atrun?

I have the following plist where Disabled is set to true. I am no able to edit the file. I can load the plist, but atrun will never run. This is specific to High Sierra. It worked in the previous verson of Mac OS, for which I upgraded my mac machine. Could anybody let me know how to get atrun working in High Sierra? Thanks.


$ /bin/ls -lO com.apple.atrun.plist

-rw-r--r-- 1 root wheel restricted,compressed 444 Dec 17 11:18 com.apple.atrun.plist

$ cat com.apple.atrun.plist

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

<key>Label</key>

<string>com.apple.atrun</string>

<key>ProgramArguments</key>

<array>

<string>/usr/libexec/atrun</string>

</array>

<key>StartInterval</key>

<integer>30</integer>

<key>Disabled</key>

<true/>

</dict>

</plist>

$ sudo touch com.apple.atrun.plist

Password:

touch: setting times of 'com.apple.atrun.plist': Operation not permitted

$ launchctl load -w /System/Library/LaunchDaemons/com.apple.atrun.plist

MacBook Air, macOS High Sierra (10.13.3)

Posted on Feb 16, 2018 9:58 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 17, 2018 4:53 AM

Does it load when you run the load command, but just never execute?

If you open Console and select system.log, do you see it running every thirty seconds? Is there an error?

For me, it loads and I can see it try to run every 30 seconds. However, it exits with code 1. I don't know if that is a problem or because I don't have any batched jobs for at.


If that doesn't work,

Have you tried creating your own launchd plist?

Just copy Apples, but remove the Disabled key and set the interval to whatever you like. 30 seconds seems a bit aggressive to me.

Save the plist in:

  • /Library/LaunchDaemons if you want it to run at startup.
  • /Library/LaunchAgents if you want it to run for each user when they log in.
  • ~/Library/LaunchAgents if you want it to run for a particular user only when they are logged in.

For either of the /Library folders, you'll want to change the owner to root:wheel

Similar questions

3 replies
Question marked as Top-ranking reply

Feb 17, 2018 4:53 AM in response to pengyu.ut

Does it load when you run the load command, but just never execute?

If you open Console and select system.log, do you see it running every thirty seconds? Is there an error?

For me, it loads and I can see it try to run every 30 seconds. However, it exits with code 1. I don't know if that is a problem or because I don't have any batched jobs for at.


If that doesn't work,

Have you tried creating your own launchd plist?

Just copy Apples, but remove the Disabled key and set the interval to whatever you like. 30 seconds seems a bit aggressive to me.

Save the plist in:

  • /Library/LaunchDaemons if you want it to run at startup.
  • /Library/LaunchAgents if you want it to run for each user when they log in.
  • ~/Library/LaunchAgents if you want it to run for a particular user only when they are logged in.

For either of the /Library folders, you'll want to change the owner to root:wheel

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.

How to start atrun?

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