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

learn more… | top users | synonyms (2)

71
votes
15answers
67k views

runaway distnoted process

Sometimes I see a distnoted process suddenly spin up and chew up 100% CPU (on one core) and a ton of memory, often in the neighborhood of 1.5G or so. This happens a few times a day, starting a month ...
2
votes
0answers
23 views

launchctl gives permission error

I have a user named 'tv' (OS X 10.11.5) and I have these files in /Users/tv/Library/LaunchAgents/ # ls -lsa /Users/tv/Library/LaunchAgents/ total 16 0 drwxr-xr-x 4 tv staff 136 Jun 24 20:46 . 0 ...
0
votes
0answers
32 views

tftpd not working - MAC OS X El Capitan 10.11.5

I use tftp in a daily basis, as part of my work. So far, so good, since yesterday (Jun 21, 2016) it simply did not worked anymore. I do not know exactly the reasons, because could not find any support ...
0
votes
0answers
13 views

Permission issue when installing a Mac Service

I have an installer for Mac OS X, which tries to install the program as a service. As usual during the installation process the user has to confirm their password, which allows the install. However, ...
1
vote
1answer
2k views

How to run script on startup and shutdown OS X El Capitan

Actually I want to make a RAM drive related to this script on my Mac. Here is what I did: Disabled SIP in recovery mode using command "csrutil" Created a plist file in /Library/LaunchDaemons/ ...
2
votes
2answers
296 views

Why is my BASH script being executed twice? I'm using launchd

I have one plist associated with this launchd agent. There is one agent listed in launchctl list, and it calls my bash script, called rc.wakeup, whenever the mac is woken up from sleep. There is only ...
0
votes
0answers
20 views

What is com.apple.serviceproxy?

I have 6 instances of httpd running, and they respawn after I kill them. I tried the solution provided on this answer , $ pgrep -fl foo 40679 bash /tmp/foo $ launchctl list|grep 40679 40679 - ...
1
vote
2answers
27 views

How do I kill a daemon and not have it open up again if I can't find it in the LaunchAgents or LaunchDaemons?

So I think I downloaded a program from Avatron called Airconnect. I'm not sure, but their website was purple when I looked it up. Anyway, now everytime I check my activity monitor, com.avatron....
0
votes
3answers
602 views

Is it possible to change the SSH_AUTH_SOCK path?

I would like to have the ssh-agent socket inside my home directory, but currently it is created inside /private/tmp. I see that the agent is managed though launchctl and this plist: /System/Library/...
2
votes
1answer
716 views

How do I find the root cause of launchd crashing?

UPDATED: Added crash log. It's not clear (to me) why launchd is dying: Anonymous UUID: B3C59CC3-5B1B-3BDD-F35F-BB6973D6679B Thu Jul 30 07:55:30 2015 *** Panic Report *** panic(cpu 0 caller ...
0
votes
0answers
23 views

Disable Macbook Pro Mic

Is there any easy ways to disable the built-in mic? My requirements are Software based Do not need to run every time after login Keep the system integrity protection on Re-enable at needed I have ...
0
votes
0answers
23 views

Weird launchd behaviour, process still running after deleting launchd file and rebooting

I just don't get it! I had a launchd.plist file set up correctly to run transmission-daemon from /Library/LaunchDaemons/ folder, before any user login. Here is the file: <?xml version="1.0" ...
1
vote
0answers
73 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 ...
1
vote
0answers
38 views

Force Samba service to start before Apache

I'm trying to use a Apache-based application which depends on NFS and Samba shares to access files on a remote server (the application will then use WebDAV to access the files). I wanted to ...
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 ...
1
vote
2answers
40 views

Start stunnel service on bootup

I have a service ran under homebrew. This service is simply started by running the command sudo stunnel I need this command to run on bootup, so I created a LaunchDaemon but it is not working. Here ...
0
votes
1answer
27 views

Launchd based daemon exit with abnormal code 1, without crash log

I've seen many questions that relate to specific daemons/applications that exit on this same exit code (=1). All scenarios seems unique and unconnected. I created a daemon of my own, and also got the ...
1
vote
2answers
62 views

Using launchd to monitor a running program or process

I've written a simple bash script to check whether a program (supplied as its only argument) is running and send an email to a set address in the script if it's not. The script works if run on the ...
1
vote
0answers
22 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 ...
6
votes
3answers
766 views

How to disable Adobe Core Sync app on OS X from being launched automatically?

I have noticed a lot of Adobe processes are running in the background at start up on an OS X 10.11.4 (15E65) machine with Adobe Creative Cloud (CC) installed. To get rid of this, I removed everything ...
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. ...
2
votes
0answers
19 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 ...
0
votes
0answers
9 views

Replicating Crons MAILTO email output with launchd / launchctl

It's annoying that launchctl has done away with the MAILTO function that was in CRON. I'm wondering is there any wrapper script like Cronic that can be used to restore the email output function? ...
1
vote
1answer
40 views

OS X Server: Open Directory PasswordService crashes

I'm running an OS X 10.9 Server (it's a Mac Mini) that is providing a few services (iCal, VPN, file sharing, etc.) to a small group of Local Network Users. After we installed a security update today, ...
7
votes
1answer
150 views

How do I use non-“legacy” launchctl commands to load and unload plists?

I have some plist files in ~/Library/LaunchAgents. I have been happily using launchctl load -w and launchctl unload -w to turn these on and off for years. However, I notice that now load and unload ...
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 ...
6
votes
4answers
7k views

What is causing launchd to burn my CPU?

I'm running Yosemite, a clean install. launchd continuously runs at 100% CPU. Since the Yosemite upgrade I can't change the log level with 'sudo launchctl log level debug' Checking top or Activity ...
0
votes
0answers
2k views

Yosemite com.apple.xpc.launchd[1]: (com.apple.cloudpaird) is running every 10 seconds

I am getting this message that repeats every 10 seconds on my Mac in Console: "com.apple.xpc.launchd[1]: (com.apple.cloudpaird) Service only ran for 0 seconds. Pushing respawn out by 10 seconds." I ...
11
votes
4answers
5k views

ssh-under-cron stops working in OS X 10.7 Lion

Just upgraded from Snow Leopard to Lion, and my cron jobs that use ssh have stopped working. It appears that ssh-agent is no longer functioning as expected. Here's a bowdlerized version of my called-...
0
votes
1answer
67 views

Editing com.apple.atrun.plist on El Capitan

I am running El Capitan on several computers and would like to be able to use at to run scheduled jobs in the background. Enabling at requires editing /System/Library/LaunchDaemon/com.apple.atrun....
0
votes
1answer
2k views

Unable to start after having applied all known recovery steps

Traditional recovery steps After a forced startup due to a wifi connection issue, the startup stayed stuck with a grey screen, Apple logo and turning spinning indicator. Then I tried all the ...
0
votes
1answer
35 views

OS X: Schedule Launchctl to quit application at certain time

I have created this launchctl .plist for opening an application at a specific time every day – or the next time the computer wakes from sleep. <?xml version="1.0" encoding="UTF-8"?> <!...
1
vote
1answer
109 views

Error while trying to create an account in single user mode on OS X Mavericks

On OS X Mavericks, I am trying to create an account using single user mode, using the following script. #! /bin/bash # create user dscl . -create /Users/hiddenuser dscl . -create /Users/hiddenuser ...
4
votes
2answers
5k views

Why won't kern.maxfiles setting in /etc/sysctl.conf stick?

I've been getting various "too many files open in system"-type errors on Yosemite (10.10.1). Searching around suggests setting kern.maxfiles and kern.maxfilesperprocess in /etc/sysctl.conf. I've ...
1
vote
1answer
84 views

launchd notification on abnormal exit

I have a launchd job plist that runs a simple shell script that invokes rdiff-backup to backup a remote directory over SSH to my computer. The job runs every hour and it works well. Except the other ...
0
votes
0answers
38 views

Open jnlp Java program with launchd

I'm trying to run a vendor provided jnlp app using launchd on a 10.10 Mac. I have a LaunchDaemon plist that opens a .sh script. This runs as root. This script has 2 main steps. Step 1 copies a csv ...
1
vote
1answer
76 views

mysql fails to load on boot

I have a Macbook. Forever I’ve had mysql server installed and running on start (using El Capitan). Well now I’ve installed Wine. Since then mysql server fails to start on reboot. If I manually run ./...
0
votes
0answers
133 views

How to get those errors out from my Console?

my mac is generating those errors at every 5 seconds. Running latest stable version of EL Capitan. Any idea? Any help would be useful. 15/03/16 09:24:50,065 xpcproxy[12275]: LaunchServices: ...
2
votes
1answer
2k views

Troubleshoot launchd/launchctl issue where application won't load

I'm trying to load a LaunchAgent in ~/Library/LaunchAgents and although, from command line, it "appears" to load. However, if I try to load it again it says it's "already loaded". But a process for ...
0
votes
0answers
74 views

Should I allow application “launchd” to accept incoming network connections?

I just bought a used MacBook running OS X El Capitan 10.11.3. I logged into the guest and it asked if I "should allow the application "launchd" to accept incoming network connections?" Should I ...
0
votes
0answers
34 views

launchctl list will show a service, but will not show detail

If I run "launchctl list", it shows a bunch of services. However, I can do "launchctl list SERVICENAME" on some services to show detail, but not on others: Eg: $launchctl list ... - 0 com.apple....
8
votes
3answers
9k views

How to find out what launch agent or daemon is starting a process

After installing Autodesk Smoke, I have two httpd processes running all the time, and I'd like to stop them. When I use sudo killall httpd, they stop and are restarted right away. Activity Monitor ...
1
vote
1answer
62 views

Script of mysqldump didn't work correct invoked by launchctl in OS X

Here is my question asked on StackExchange 2 days ago. http://stackoverflow.com/q/35839190/4772652 Someone suggested me to ask here. Could anyone give me a hand to solve this? ============ I had ...
2
votes
1answer
79 views

10.11.3 - launchd to start a job either at startup or at time of day

I am attempting to use launchd to have SelfControl be active from 8am to 8pm. My first attempt was to just use launchd and have a little bash script which starts self control (for 12 hours) at 8am, ...
1
vote
1answer
70 views

Run a command on a schedule and verify that it has run

I want to run an rsync command each day or more often to back up a raspbery pi on my network to a drive attached to my mac. I see launchd, but I'm very confused about how to get it to work, and I ...
3
votes
1answer
482 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
241 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
1answer
172 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 ...
0
votes
0answers
28 views

Microsoft Word on OS X running executable hyperlinks from 'launchd'

I'd like to create a script that calculates statistics on all opened applications and what parent process has initiated them. I would expect that the ppid for each running process will represent the ...
0
votes
0answers
28 views

Taking focus on app launch

It seems that most OS X applications launch into the foreground and thereby steal keyboard focus from its predecessor there. Searching here, I have found way to prevent a particular app from doing ...