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

learn more… | top users | synonyms (2)

3
votes
1answer
30 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. ...
4
votes
0answers
34 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 ...
2
votes
0answers
16 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 ...
63
votes
14answers
61k 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 ...
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 ...
0
votes
0answers
8 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
27 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, ...
0
votes
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/ ...
6
votes
1answer
120 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
45 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 ...
5
votes
4answers
6k 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
4k 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 ...
0
votes
1answer
48 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 ...
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
28 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
93 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
81 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
28 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
39 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
85 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
53 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
20 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 ...
7
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
38 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
71 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
44 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
126 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
154 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
118 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
27 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 ...
0
votes
0answers
647 views

rsync error: connection unexpectedly closed

I'm trying to backup some folders on an ubuntu server to an external G-Drive, connected through thunderbolt to my iMac, in this manner: $ time nohup sh -c 'rsync -avz myuser@myserver:/home/user/ ...
0
votes
1answer
39 views

How do I reload an OS X “bash” user-environment

I think that I want to ask How do I reload an OS X bash user-environment But damnit Jim ; I'm a software engineer not a sysadmin The Goal I want Jenkins started as a Daemon on El Capitan I want ...
9
votes
2answers
3k views

/System/Library/LaunchAgents is locked in El Capitan

I'm trying to achieve this: Make my password protected SSH key expire or timeout after a while In Yosemite, this worked fantastic, in El Capitan, using sudo, the files in /System/Libary/LaunchAgents ...
2
votes
1answer
90 views

How to run a command at startup

I want to automatically start my MongoDB Server at startup. The command for it is mongod --dbpath="/Users/prateek/Desktop/Mongo Database" How do I configure this in Mac OSX El Capitan? Note - I ...
1
vote
2answers
73 views

Is it possible to evaluate an expression in launchd's ProgramArguments array?

Is it possible to compose my launchd.plist file so that an embedded expression is evaluated and not treated as a literal value? And, if so, how? I have a ~/Library/LaunchAgents/setenv.JAVA_HOME.plist ...
0
votes
1answer
58 views

Why won't my LaunchDaemon start?

I'm attempting to write my first LaunchDaemon: I think it's pretty simple and meets all the requirements, but it won't run. The file is at /Library/LaunchDaemons/com.noah.supertest.plist Ideally, it ...
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. ...
0
votes
1answer
32 views

Max file limit conundrum

Following this article I've adjusted my open file limits: $ launchctl limit maxfiles 65536 65536 The trouble with this is that when I try to open Adobe applications I get ...
14
votes
1answer
2k views

Set launchd log level

How can I set the log level of launchd in MacOS Yosemite? I've tried launchctl log level debug but it doesn't work.
4
votes
1answer
5k 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 ...
0
votes
0answers
38 views

Replaceing Folder Action Dispatcher with LaunchAgent on Yosemite

The fact that Yosemite's Folder Action Dispatcher (the thing that watches folders for changes and then performs some action) is broken (High CPU/mem) is well documented. However, what to do about it ...
0
votes
1answer
39 views

com.dashlane.DashlaneAgent still trying to be loaded

I have removed Dashlane using the documented procedure, yet launchd is still trying to load com.dashlane.DashlaneAgent. I have tried issuing sudo launchctl remove com.dashlane.DashlaneAgent with no ...
0
votes
0answers
49 views

launchctl load daemon by multiple users?

In OS X 10.10.5, an admin user A launches a daemon: sudo launchctl load /Library/LaunchDaemons/org.user.script.plist An admin user B also wants to load this daemon. But it is not found by "sudo ...
5
votes
1answer
2k views

Launchctl difference between load and start, unload and stop

I was reading through the launchctl man page and have a few questions about its functioning: What is the difference between load and start, unload and stop? Where do I find the job label for a ...
1
vote
1answer
289 views

Manage login items from terminal in 10.11 El Capitan

Previously, % launchctl submit -l label -- command args was the way to go. This does not work in 10.11.2, I'm fairly sure it was working in 10.10.x, but cannot be certain. The likely-looking ...
2
votes
1answer
51 views

How can I shut down an unlisted php-fpm?

I have two installations of php on my machine. One came with apache and is a 5.3 version, and I'm trying to use a 5.4 version with nginx. I'd like to work on project using nginx, but I can't figure ...