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

learn more… | top users | synonyms (2)

4
votes
1answer
352 views

What is the difference between cron and lauchd?

What is the difference between cron and lauchd? I have always used cron, but I have recently heard that launchd is better. Why? In what ways is cron better? In what ways is launchd better?
4
votes
1answer
4k views

launchd with high disk usage

launchd is producing a lot of I/O activity. In the last day and a half it managed to write 12 GB of data while reading 500MB. I the logs I do not see anything suspicious. Any suggestion at where ...
4
votes
3answers
991 views

Can't quit app launched through launchd

As it says in the title, "Can't quit app launched through launchd"—or more precisely, I can quit it, but it then automatically restarts again. Background: I prefer to use BusyCal, not iCal, but ...
4
votes
1answer
7k views

How do I remove or disable AdobeIPCBroker?

A new unstable resource-draining Adobe process that has recently appeared on my Mac is proving more difficult to hunt down and kill than the numerous other processes that Adobe creates. Generally ...
4
votes
1answer
2k views

Can I unload com.apple.mrt via launchd or otherwise remedy these errors?

I just realized that the job com.apple.mrt crashes every 10 seconds on my Mac. What exactly is the aim of com.apple.mrt? Apparently it should be a "Malware Removal Tool". Can I remove it from ...
4
votes
1answer
518 views

launchd StartCalendarInterval not working reliably

I have several tasks that I run from launchd using StartCalendar interval. Under Yosemite these do not necessarily run. (Under Mavericks and earlier they did run) How do I see what launchd is doing ...
4
votes
2answers
4k views

Force launchd to re-read environment variables

Is there any way, short of rebooting, to force launchd to re-read environment variables newly defined in /etc/launchd.conf? Can it be done with launchctl(1)?
4
votes
2answers
1k views

How to automate DropBox startup without logging in

I'd like to have DropBox running under multiple user accounts on a Mac, even after a reboot. The Mac auto logs in as one user, not me. How to best achieve this?
4
votes
2answers
221 views

What is “ss_conn_service ” running on OS X?

I'm using OS X El Capitan on iMac 21.5". As an experienced user, I follow activity monitor sometimes for security of my device. For 2-3 days,"ss_conn_service" is running on my device. I cannot ...
4
votes
1answer
7k views

Should I be concerned if the helpd process is eating RAM after an upgrade to Lion?

Hallo, I've recently upgraded to Mac OS Lion from Snow Leopard on my 2009 Unibody Macbook. Now, checking in activity monitor I often find a strange process named helpd taking large parts of the memory ...
4
votes
1answer
104 views

Launchd starts event 40 seconds later?

I've created a .plist file, which should act as system daemon (global with root user). This .plist file listens to the settings directory for changes like changing network settings. When this happens ...
3
votes
2answers
4k views

GUI service manager for OS X?

I am looking for a GUI application, with in icon on the top bar, that can be used to start and stop different services on OS X. These do not have to be real OS X (launchd) services/daemons, it is ...
3
votes
2answers
2k views

Why Does a Shell Script Trapping SIGTERM Work When Run Manually, But Not When Run via launchd?

Okay, quite simply I have a shell script that needs to wait for something to happen, but it has a lock-file and some child-processes that I need to ensure are tidied up if the script is interrupted. ...
3
votes
2answers
9k views

Can't delete .plist files from Trash

I have a program which, when deleting any app, also deletes the extra files and junk as well; including .plist files. Normally this works great though, this time around I've had a few files which won'...
3
votes
1answer
1k views

how to block Adobe, Google and others from installing crap on my Mavericks

Adobe and Google insist on install crap on several folders, like update checkers and things like that. This is the crap I have identified by Adobe. /Library/LaunchAgents/com.adobe.AAM.Updater-1.0....
3
votes
3answers
4k views

Finding the true status of launchd jobs [closed]

launchctl list launchctl bstree These show which jobs are active, dormant or inactive, allegedly. I have never seen an inactive job personally. Even ones that I have tried to inactivate show as 'D'...
3
votes
2answers
1k views

Huge number of anonymous.xpcd?

When I list out launchctl, I'm seeing nearly a hundred instances of iterations of: Command: sudo launchctl list | grep --invert-match com.apple yields: 1 - 0x7fb4b0f38e50.anonymous.launchd 711 - ...
3
votes
1answer
2k views

Can't connect to rpcbind on localhost

Since upgrading to OS X 10.9 Mavericks, I can't connect to the rpcbind daemon anymore. launchctl tells me that rpcbind is loaded but not running: $ sudo launchctl list | grep rpcbind - 0 com....
3
votes
2answers
619 views

LaunchDaemon not recognised

I've installed CouchDB via MacPorts. Now I want to start it when my Mac boots, so I executed the instructions given in the install process: sudo launchctl load -w /Library/LaunchDaemons/org.apache....
3
votes
1answer
496 views

Launchd script's output not being logged to system.log

Sample script: #!/bin/bash echo "Hello?" ... (other things) When run via launchd, it definitely runs (the other things are being done) but nothing shows up in system.log. I'm running OS 10.9. I ...
3
votes
2answers
713 views

Find process associated with launchd

TCP port 5901 is open on my machine and is causing some mischief, and I want to know which process is opening it. When I run lsof -i -P I see that launchd is the process that opened the port. Is ...
3
votes
2answers
171 views

launchd: ask user before performing tasks

Is there a way to get a user-defined launchd task (i.e. like the one in this question) to get user confirmation before executing the task? A popup like the one for scheduled sleep (with yes/no and a ...
3
votes
2answers
577 views

How to run iPython Notebook as a service

What would be the best "standard" way to create a launchd script to run python notebook? I would like the service to start at login and an easy to start-stop-restart the server from a terminal.
3
votes
3answers
287 views

Restoring Yosemite server after unloading launch daemons

So, while trying to fix a corrupt open directory I came across a fix that said to enter this command... sudo launchctl unload -w /System/Library/LaunchDaemons/ org.openldap.slapd.plist From the ...
3
votes
1answer
58 views

Is it possible to run a script every 24 hours on MacBook Pro even in sleep?

I want to run a script every 24 hours, that scrapes a website and fetches data, save it to my local MySQL database, and push its DB to my remote Heroku or IBM Bluemix MySQL server (or ClearDB). I did ...
3
votes
1answer
497 views

How to stop OS X from trying to run TeamViewer every 10 seconds

I recently happened to look at my system.log file and noticed the following messages over and over: Mar 4 12:09:32 ix com.apple.xpc.launchd[1] (com.teamviewer.teamviewer[11506]): Service could ...
3
votes
1answer
174 views

Launchd script to mount volume on boot

I have a script monta.sh to mount an external volume: #!bin/sh mkdir -p /Volumes/remvol mount_smbfs //user:password@server/folder /Volumes/remvol Then I have a com.jo.monta.plist to launch the ...
3
votes
1answer
1k views

Configure Yosemite Server WebApp with LaunchD

Question Has anyone successfully been able to start a webapp via a webappctl configuration which specifies a launchd configuration in their webapp.plist launchKeys key? Background Specifically, ...
3
votes
2answers
1k views

Why is my 'launchd' task not responding to changes in watched files?

I have a launchd task that is not triggering when a file changes, and can't figure out why it's failing. When I load the .plist below with launchctl load /Users/Rax/Library/LaunchAgents/com....
3
votes
1answer
2k views

Launchd - Run as if you're logged in as a user using sudo

Is there a way to do this? Basically I'm trying to run a script that needs to launch a program. Putting the script in /Library/LaunchDaemons works fine, but everything gets run as if its the root ...
3
votes
1answer
526 views

In Mountain Lion why do remote shells via ssh do NOT inherit the environment of the launchd parent process?

When logging in to my Mountain Lion Mac remotely via ssh I do not get the same PATH variable as when I open a shell locally: The local shell inherits its environment as expected from launchd and ...
3
votes
1answer
246 views

How to modify a Launch Daemon permanently under OS X El Capitan?

I modified the default org.postfix.master.plist of postfix to run as a daemon, so it can send me e-mail whenever a local user receives a mail. Default: <?xml version="1.0" encoding="UTF-8"?> ...
3
votes
2answers
2k views

Background processes periodically eat up my CPU time on OS X 10.10.4, Yosemite

Periodically the CPU on my iMac Mid-2015 running OS X 10.10.4, gets used almost exclusively by: launchd: ~70% fseventsd: 12% UserEventAgent: ~40% opendirectoryd: 20% notifyd: 12% I have tried ...
3
votes
1answer
4k views

Disable citrix receiver startup on login

I have installed citrix receiver on my home macbook. It auto starts on login yet it does not show an entry in the Login Items tab under the Users and Groups pane of System Preferences. How can I ...
3
votes
2answers
4k views

How do I associate a launchd 2 plist with its domain and service targets?

What exactly are these "domain" and "service targets" and how do I associate them with plists for use by launchd? OS X 10.10 introduces a new launchctl API for managing LaunchDaemons and launching ...
3
votes
2answers
443 views

Run action when device is detached

I'm using a launchd agent to run a shell script whenever I connect my thunderbolt dock. I've been able to use IOKit notifications to detect when the dock is being attached, but I also want to run a ...
3
votes
2answers
1k views

Why isn't my launchctl.plst firing on startup?

I created this plist to get Mongo running on startup but it won't fire. I have to run this every time I start up: launchctl load /Library/LaunchDaemons/org.mongo.mongod.plist Then it works fine. ...
3
votes
1answer
416 views

Uninstalling Genieo broke my system

Update below, the rest is more or less background information. After discovering a Genieo install, I vaguely recalled it being, well, not trustworthy. After a quick search I knew I wanted to ...
3
votes
2answers
1k views

Add Static ARP Entry at Boot

I'm new to Mac OS X. On Linux I'd: append to /etc/rc.local arp -i eth0 -s 192.168.1.1 00:00:00:00:00:00 I've figured out how to do it in Terminal: sudo arp -s 192.168.1.1 00:00:00:00:00:00 But I'...
3
votes
1answer
112 views

How to switch from Spotlight to Alfred via Terminal?

I installed Alfred through homebrew-cask. I want to disable Spotlight and let Alfred be opened with Cmd+S. The first Terminal-based solution I tried was unloading Spotlight with sudo launchctl unload ...
3
votes
5answers
3k views

no such process error with launchctl start. Mac OSX 10.9

The goal is to set machine's network name with the ipaddress of this machine. I have created a plist file and put it into /Library/Launchagents/. For debugging reason I used the command "launctl start"...
3
votes
2answers
2k views

How can I write to Notification Center from a launchd command?

I've got a plist set to run at a set interval, and have put it in /Library/LaunchDaemons like so: /Library/LaunchDaemons $ ll macports_update_notifier.plist lrwxr-xr-x 1 root wheel 55B 5 Sep ...
3
votes
1answer
33 views

Using postgres with launchd without constant issues

I have postgres and passenger installed from homebrew, and use the os x built in apache. I have several rails apps that use postgres which are managed by passenger which in turn is managed by apache. ...
3
votes
0answers
52 views

Loading User LaunchAgent Successfully

I have created a Plist file to replace an Xinetd process that I used successfully in Windows (Cygwin) and Linux to stream an imapd connection from a remote server via ssh on a port on the localhost. ...
3
votes
5answers
2k views

How do I get my LaunchAgent to run as root?

I’m using Mac 10.9.1. I’m trying to set up a process to run after login that runs as root. I created this file in /System/Library/LaunchAgents/eXist.plist with rx—r—r— permissions. The contents of ...
3
votes
1answer
474 views

Opening an OS X disk image with a launchd agent while the display is sleeping

I created a launchd agent which opens a non-password-protected sparse disk image (and mounts its solitary volume) daily at 2:45AM in preparation for backup software to write to the volume. The launchd ...
2
votes
3answers
118 views

Configure launchd

I have a launchd plist in ~/Library/LaunchAgents designed to run a script located at ~/writout.sh every day at 10:30AM: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//...
2
votes
2answers
1k views

How do you set the maxopenfiles limit in Yosemite?

How do you set a soft limit for maxopenfiles in Yosemite? I installed Yosemite last night, and now it's ignoring my settings in my /etc/launchd.conf file: $ cat /etc/launchd.conf limit maxfiles ...
2
votes
2answers
2k views

How to run a nightly backup job on Snow Leopard Server via launchd

I have been trying to configure a nightly backup job on my Mac Mini server, and after a lot of Googling and digging and man-page'ing, I figured out that launchd seemed to be the correct too, and tried ...
2
votes
1answer
2k views

Submitting job to launchd gives error “no plist returned”, “nothing found to load”

I'm writing my first launchd plist. When I try to load it with the following command: $ launchctl load com.Test01.plist launchctl: no plist was returned for: com.Test01.plist nothing found to load ...