The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [launchd]

A system for starting, stopping, and managing automated processes.

78 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
606 views

How launchd StartInterval behaves after long sleep?

I have a 21,600secs (4hours) job using launchd.plist. I have 2 mac, main and sub. With main mac, my plist works fine. But with sub mac, which is wakes up 3~4 times per week, my plist does not seems ...
5
votes
0answers
325 views

How daylight saving changes are handled in launchd to make sure it execute the the jobs as scheduled through plist?

Since August 2013, I am using Mac Mini with OS X version 10.8.2 as my web server (MAMP stack). I have a few launchd scheduled jobs scheduled through plist. Everything was working fine until Nov 3, ...
4
votes
0answers
447 views

Can't use launchctl as non-root user

I was trying to set up the grooved - a music player daemon. It works over dbus which I installed through Homebrew. In the caveats of the dbus formula it says: To start dbus: brew services start dbus ...
4
votes
0answers
475 views

Does system integrity protection prevent nvram(8) from setting -x as a boot argument for safe mode?

When pre-release macOS Sierra is in safe mode with -x as a boot argument in NVRAM, the following command works as expected: sudo nvram boot-args="-v" When Sierra is booted in normal mode, the ...
4
votes
0answers
2k views

Set the WorkingDirectory to user's home in launchd?

I understand that you can change a LaunchAgent's working directory with a WorkingDirectory key, but is there any way to set the Working Directory to a user's home directory reliably and portably ...
4
votes
0answers
2k views

How can I delay loading of a launchd Launch Daemon on boot?

I am running OS X Server 10.7.5 on a Mac Mini and I cannot get MacPorts’ Apache2 to start on boot. I have ensured that the Apple-supplied version of Apache is not launching and I have also ensured ...
3
votes
0answers
40 views

launchd run command every minute of a specific hour

On man launchd.plist it says (emphasis mine) StartCalendarInterval This optional key causes the job to be started every calendar interval as specified. Missing arguments are considered to be ...
3
votes
0answers
34 views

Append instead of overwrite log file by StandardOutPath and StandardErrorPath

I have a launchd job that periodically runs in the background. Any stdout and stderr output during the job is logged to some files set in the job's plist using the StandardOutPath and ...
3
votes
0answers
2k views

How can I mount Google Drive File Stream before launchd user agents start?

I have a simple backup bash script that dumps the output of pg_dump for a PostgreSQL database into a Google Drive File Stream directory. This bash script is referenced by a launchd user agent. The ...
3
votes
0answers
973 views

com.apple.pc.launchd keeps respawning every 10 seconds — problem with MRT, MRTd?

I am running OS X El Capitan, on an iMac (27-inch, Mid 2010). Using "top," I noticed that my systems was always running "ReportCrash"; I looked into the logs, and found: 1/25/18 12:32:51.464 PM com....
3
votes
0answers
152 views

How to tell which Launch Agent is running

I'm a script kiddie noob so sorry if I get some of the jargon wrong or if this is a dumb question but... I have written a launch agent that runs an application I also wrote at specified times to ...
3
votes
0answers
1k views

Why would AppleIDAuthAgent take nearly 100% CPU?

The AppleIDAuthAgent process on my 2007 Mac Pro running OS X 10.7.5 is taking up 95-100 % CPU continuously. I use it whenever I go to work. I also use it as a server. I occasionally pull/push ...
3
votes
0answers
302 views

customize system launchagent arguments in el capitan

Is there any way to work around the inability to customize launchagent plists in El Capitan without completely disabling system integrity protection? Specifically, I was sad to find that my ssh-...
3
votes
0answers
673 views

Launchctl does not load service on boot

I installed mysql via homebrew in osX 10.10. It comes with plist file located in /usr/local/opt/mysql/homebrew.mxcl.mysql.plist. The contents: <?xml version="1.0" encoding="UTF-8"?> <!...
2
votes
0answers
25 views

rsync denied to access directory when run with launchctl

I have mounted samba share in "/Volumes/Samba" with full read/write access right to it. I created simple script to rsync files from smb share to folder on my disk, when I lunch script from terminal ...
2
votes
0answers
40 views

My launchAgent service is launching my application multiple times even if configuration has RunAtLoad true and OnDemand true(default)

My purpose is to launch my application during every login but is being launched multiple times. I copied my below plist file in to /Library/LaunchAgents and gave root ownership and chmod 600 <?...
2
votes
0answers
300 views

Homebrew dnsmasq “Service exited with abnormal code: 2” (Mac OS X Sierra 10.12.6)

Workaround (update) A quick workaround is to stop the job through brew services stop dnsmasq. Then you should first unload the launchd configuration file and then reload it. $ sudo launchctl unload -...
2
votes
0answers
761 views

How to disable core services safely without screwing up the OS?

There are certain core services in macOS which takes up a significant amount of your CPU and RAM. I don't use iCloud so nothing synchronises but, still Safari needs to run Bookmarks Sync Agent for no ...
2
votes
0answers
841 views

Troubles with com.apple.cmio.AppleCameraAssistant

I've got a problem with the Daemon com.apple.cmio.AppleCameraAssistant. After some researches on my side, I've finally found the problem on why UserEventAgent took so much of my CPU. Because of this:...
2
votes
0answers
270 views

Disable Launchd based daemon sudden termination upon shutdown

I'm running my own daemon under macOS Sierra and High-Sierra, and get unexpected behavior upon shutdown. according to the manual of daemon life cycle, it says that ... If the system is being shut ...
2
votes
0answers
92 views

What process powers the progress bar during initial boot?

I recently learned that launchd was written and used starting with Mac OS X Tiger. Before it's inception the progress bar would actually give useful information about what process was currently being ...
2
votes
0answers
591 views

Something has taken over Little Snitch?

Due to sad neglect, I own the computer from the exorcist. I finally looked last night and there were 80 sshd connections from China. I blocked all traffic to/from sshd, and now that sshd is linked ...
2
votes
0answers
40 views

Notify someone by email if FileVault Safari-Only Guest User logs in

This question is related to questions 154363 and 144801 (I can't link to them b/c I don't have the reputation and need my two link limit below), but they don't quite answer what I need. Please note ...
2
votes
0answers
244 views

Launch daemon not processing program arguments

I have been trying to make a change (for port forwarding/redirecting) to the pfctl.conf file and have it ( the /etc/pfctl.conf file) loaded at startup. The pfctl.conf has been been confirmed to be ...
2
votes
0answers
8k views

What is “icdd” and why is it persistent?

I have a relatively older Macbook Air (late 2010). Memory usage is pretty tight on it, and I try to keep things as svelte as possible in that regards. Lately, I've noticed the process icdd is using ...
2
votes
0answers
40 views

How should daemons tell users about errors?

I wrote a bash script that backs up certain files on my computer. To automate the running of the script, I set up an associated daemon that runs the script every day. There are certain instances ...
2
votes
0answers
51 views

Do I really need a huge plist file to replicate this cron job?

I am looking to create a launchd job that will execute Monday through Friday at 7:32am, 8:32am, and 2pm. Do I really need a plist that has an array of 15 <dict> elements for every combination of ...
2
votes
0answers
534 views

Automator and Launchd: OSStatus error -10810

I have a number of automator script scheduled in launchd. All the scripts work fine and execute the workflow as expected. These are simple workflows that execute some finder actions and shell ...
2
votes
0answers
1k views

Kernel panic related to DirtyJetsamMemoryLimit?

I've been having random crashes (freezes or kernel panics requiring hard reboots) but I can't seem to pin down the cause. Looking in Console.app on restart, the only common factor seems to be related ...
2
votes
0answers
422 views

New stats file created every 20 seconds in /var/log/com.apple.launchd.peruser.94?

My machine consumes all CPU for one or two hours processing some systemstats. So far I work around that by regularly cleaning the huge amount of data in /private/var/db/systemstats/ Now I noticed, ...
2
votes
0answers
1k views

softwareupdated using 350MB+ of memory, is this a problem? How can I get it to use less?

I'm running Yosemite with the latest updates. softwareupdated is using approximately 380MB of memory. That seems quite high to me. Is that normal? Is that indicative of a problem? Does ...
2
votes
0answers
559 views

Filter launchctl standard err/out to add timestamp to log messages

I have a Launch Daemon running, happily logging to a couple of files specified using the Standard(Error|Out)Path entries in the property list file. Now, the problem is that the particular program ...
2
votes
0answers
560 views

Guide on removing unused Agents and Daemons to speed up MacOS

Can you point me to a good guide on spotting and getting rid of running Agents, Daemons and Processes that aren't useful to me anyway and are taking up memory and CPU cycles?
2
votes
0answers
442 views

Launch agents not lauching at system startup

I have several plist files in the folder ~/Library/LaunchAgents. They all have the same permissions but two of them (dotjs and pow) are not launching at login, even if they have the key RunAtLoad set ...
1
vote
0answers
15 views

launchctl list shows bundle identifiers of running application, there is a number after that what is it?

command and its output launchctl list | grep Terminal 94502 0 com.apple.Terminal.2000 What is the 2000 number referring to? 94502 is Pid and 0 is exit status What does it mean if pid is ...
1
vote
0answers
93 views

How can I take a command line tool and program launchd to run it?

I am trying to get Offlineimap to run every 5 minutes with launchd. I do not know why it doesn't work and the log file is not written on the specified location. I am running MacOS Mojave on a 2018 ...
1
vote
0answers
174 views

macOS Mojave launchd regular interval script - error is always “Found non-key inside <dict> at line 11”

The .plist in question is at the bottom but I can't find a way to run it every 7200 seconds. Checking it produces the same error. I have tried various versions taken from the StackExchange such as: ...
1
vote
0answers
297 views

Auto logout inactive users

My iMac is set up using Parental Controls to limit how long my kids can use it. When their time is up, they are no longer able to use the iMac. However, their accounts are not logged out, and ...
1
vote
0answers
928 views

Got a Java process with about 4 GB memory consumption after just starting up macOS

I recently found there is a Java process with more than 4 GB memory in my MBP, and it respawned after I force quit it. After restarting the computer and entering safe mode, the process does not ...
1
vote
0answers
41 views

Need help troubleshooting a shell script that won't launch (yes, permissions are 755)

It could be the lateness of the hour, but I can't understand why the following script isn't working. It's directly from the CommuniGate Pro documentation http://www.communigate.com/CGPSophos/#Update, ...
1
vote
0answers
451 views

How to run 'named' (bind) on Sierra?

Many OS versions ago, I ran a local copy of 'bind' for my in-home LAN. I noticed that it made a huge difference in the speed of name resolution. Performance of my local internet connections is ...
1
vote
0answers
247 views

Using launchd to change MAC address when joining a specific Wi-Fi network

I'm trying to use launchd to solve the above-mentioned. I have a networkchange.plist file as follows: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD ...
1
vote
0answers
37 views

Is it possible to lock an application open? Launchd?

I have just installed an application called TeamViewer on my own and my very elderly mother's Macs. This is in order for me to help her online and occasionally use the remote control facility. However,...
1
vote
0answers
45 views

Where to find documentation for apple services (agents, daemons) and status codes?

I have looked all over the place with incredible frustration - what should be basic information I can't find anywhere. Whatever I do find, is single items of information (and not what I was looking ...
1
vote
0answers
575 views

Get a list of ALL services running and not and whether or not they should be running

The basic problem I am trying to solve is that a Norton Anti-Virus process got stuck soaking up one full processor, and I had to kill it. (there was also a message on the norton app that said ...
1
vote
0answers
919 views

headless ssh key password from keychain

On MacOS 10.12 Sierra (or/and OS X 10.11 EI Capitan) how can one use the passwords for ssh keys stored in the keychain headless? If one ssh-es in and left a local session running one can see ssh-...
1
vote
0answers
620 views

Program hangs when running from a .plist but not from a command script, in OS X El Capitan

I'm having a problem running InDesignServer CS6 on a Mac from a .plist. InDesignServer runs a plugin which the company that I work for wrote. However, all attempts to trace the problem to the plugin ...
1
vote
0answers
98 views

“terminal-notifier.app is not open anymore”

From a .plist loaded to Launchd I run a bash script which displays a notification using terminal-notifier. The notification is displayed fine, but when clicked the message "terminal-notifier.app is ...
1
vote
0answers
1k views

Error executing AppleScript through Launchd - “Service could not initialize”

I've written an AppleScript that turns our CenturyLink modem's wireless radio on or off. It works when I run it manually with osascript, but now I'm trying to get it set up on a schedule with Launchd. ...
1
vote
0answers
173 views

Launchctl List - Screen Sharing Process Running While Disabled?

Below is my list of active processes as produced by the launchctl list command in terminal. I'm not messing with those processes, but I am studying them to learn more about how OS X works. The ...