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

learn more… | top users | synonyms (2)

1
vote
3answers
105 views

Login items with niceness other than 0

I have quite a few login items on my Mac, mostly Apps that I want to have idling in the background (like Tweetbot or Reeder), but that I don't use immediately. I would like to give these Apps an ...
1
vote
3answers
5k views

How to prevent loading some LaunchDaemons?

I just took a look into /Library/LaunchDaemons and was wondering how many different things I opened up there :) Can I easily remove strange one? How can I disable them during system boot? I see the ...
1
vote
1answer
2k views

Automatically Load LaunchDaemon?

I wrote a little script to automatically update my Network Location based on a couple of conditions, and have coupled that with a launchd plist to have it run every couple of minutes. However, I've ...
1
vote
1answer
192 views

Setting environment variable for sudo in Yosemite

I followed this similar question to set my environment variables in Yosemite: ...
1
vote
1answer
148 views

Is it possible to load non-default launchd plist files from the /etc configuration file?

I created the /etc/launchd.conf file but at start the content is never read. The content of launchd.conf is: load /System/Library/LaunchDaemons/KillVuze.plist (I run on OSX 10.7.2 ) If I load the ...
1
vote
1answer
2k views

How to make a LaunchAgent with StartCalendarInterval

I want to start replacing crontabs with LaunchAgents. My first attempt is not working. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ...
1
vote
3answers
701 views

To to disable a service form OS X by using recovery console?

I cannot boot my system anymore and I want to disable a service from loading and the only way to do this by using the terminal window from the recovery mode. launchctl is not available in the ...
1
vote
1answer
164 views

Why the launchd has multiple instances per user (not only me and root, but also _spotlight and _windowserver)?

I found that the launchd process has multiple instances in the process list. What is looking interesting is that there are four users under which these launchd processes are running: root < ...
1
vote
1answer
58 views

How to uninstall software that is running when the mac logs in

I get this every time I log in Which is an application that I downloaded a while back. But I can't locate it in my applications folder and I also cant see it in this: How should I go about ...
1
vote
2answers
157 views

My Launch Daemon doesn't work despite returning a 0 status

For some reason, the launch daemon I created will not run successfully at system boot. I have tried it as a launch agent but that also doesn't work. This is my plist located in ...
1
vote
1answer
1k views

What do appleeventsd and AppleIDAuthAgent do?

I looked in the activity monitor to clarify what are those processes and started with alphabetic order. I know different resources where many processes are described. But appleeventsd and ...
1
vote
1answer
745 views

MySQL (Percona) and homebrew:

I'm trying to run MySQL server (Percona) by launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.percona-server.plist and I see the following message in /var/log/system.log: Aug 9 01:36:14 xxx ...
1
vote
1answer
2k views

Defining environment variables with launchd/launchctl

There are different solutions regarding the definition of environment variables that are stored in the launchd process, namely over at StackOverflow and Superuser. How do these solutions differ?
1
vote
1answer
258 views

How do I turn the echo service on in Snow Leopard?

I'd like to temporarily turn on the echo service (TCP and UDP port 7) on in Mac OS 10.6 (Snow Leopard). I guess this involves using the launchctl/launchd?
1
vote
1answer
3k views

How to control apache service on OS X (start/stop/restart/graceful restart)?

I have Apache installed on OS X and I want to know what command I can use to: start apache stop apache restart apache gracefully restart apache Also I want to know if the commands were successful ...
1
vote
2answers
592 views

How can I break a persistent association between .xcodeproj files and Xcode 4.2 beta?

I've got Xcode 4.0.2 installed in /Developer, and the Xcode 4.2 beta in /XcodeBeta. My problem is that the .xcodeproj file type is now associated with Xcode 4.2 and I can't change it to Xcode 4.0.2. ...
1
vote
1answer
95 views

coreaudiod and launchd are taking up 80% and 40% processor respectively

I've just upgraded from mavericks to yosemite, the download was sluggish but eventually worked so I don't think any of the files were corrupted. There was no hitch with the installation as far as I ...
1
vote
2answers
907 views

How to automount SSHFS volumes with FUSE OS X on Mavericks

Iv'e managed to get my ssh volumes mounted with SSHFS via the command line but would really like is to have them auto mount on login. So far, I've set up a launchAgent to run a shell script that ...
1
vote
1answer
44 views

How to load a LaunchAgent always as root?

I'm using a LaunchAgent to always open a cocoa application (i.e. Xcode) at login. the custom application requires root permission but when it's loaded by launchctl is loaded without permissions. How ...
1
vote
1answer
439 views

launchd won't run a loaded script on reboot

so i'm having a few troubles with launchd I made this plist: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs$ ...
1
vote
2answers
535 views

What exactly is the purpose of TimeOut key in launchd plist?

What exactly is the purpose of 'TimeOut' key in launchd plist? I thought a program specified through the first parameter of ProgramArguments will be executed after waiting seconds specified as the ...
1
vote
1answer
350 views

Does LaunchAgent prevent repetitive execution of jobs?

I want to automate the execution of a long-running job. It should be launched once per day but only if the prior job isn't still running. Can I accomplish this with launchd and how?
1
vote
3answers
966 views

How do I schedule a root command to run at intervals?

I need to run a script in intervals that requires a root user to execute. I created a plist that will call a script in ~/bin/test.sh. user@MBP:~$ ls -lah ~/bin/ -rw-r--r-- 1 root staff 566B ...
1
vote
1answer
342 views

Use launchd to start VMware's VM on VNC connection

I have a VM (VMware Fusion) with enabled VNC access. I want to be able to access it from the network. Unfortunately, VMware requires VM to be running to be able to accept VNC connections and ...
1
vote
1answer
528 views

Derive the launchd config plist based on a launch label

When I list the currently running services, I see a service I'd like to remove: % launchctl list | grep -i spotify - 13 com.spotify.webhelper Launchctl allows me to stop it via launchctl stop ...
1
vote
1answer
47 views

Where does mysql register to start itself at boot time?

I've got a Macbook Air that is starting mysql on boot. I've looked in LaunchAgents, LaunchDaemons, .bash_profile and .profile and login items. It's also not in /etc/rc.local. Where else can I look? ...
1
vote
1answer
360 views

double password entry to access account

I have the Require password 4 hours after sleep ... option in Security and Privacy System Preferences set and am running a script with launchd to suspend my session at a certain time of day (see this ...
1
vote
1answer
2k views

Toubleshoot Launchd/Launchctl issue where application won't load

I'm trying to load an LaunchAgent in ~/Library/LaunchAgents and though, from command line, it "appears" to load... (if I try to load it again it says it's "already loaded".) But a process for the ...
1
vote
1answer
2k views

Setting a static route every boot with launchd / plist is failing

I hope to use launchd to set a static route on a server at boot time since I haven't figured a better way to configure this sort of networking on a server. My problem is that the command seems to be ...
1
vote
2answers
526 views

Get current StartInterval status from Launchd

If a launchd job has a StartInterval of 600 and it's been "some time" since the plist was loaded. How can one determine how much time remains until the next scheduled run?
1
vote
1answer
837 views

How to automate execution locate.updatedb by using a bash script

I am looking for a bash set of commands that will enable me to schedule the execution of /usr/libexec/locate.updatedb once every day. Please respond only with a set of command line commands, because ...
1
vote
0answers
24 views

dnsextd messages in console

I'm running OS X 10.10.1 and keep getting thousands of lines like the following in the system console log. 12/16/14 2:57:02.937 PM dnsextd[9384]: ConnectToServer - 10 failed attempts. Aborting. ...
1
vote
1answer
19 views

Launchd to terminate what it starts

I have a launchd plist that uses StartCalendarInterval to start my python script at the desired time and day of the week. Now I want to create a launchd plist that both starts and terminates a ...
1
vote
2answers
81 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 ...
1
vote
0answers
45 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 ...
1
vote
0answers
18 views

Run script (a la LaunchDaemon) before automatic app resume kicks in

I have an encrypted disk image that I use to store some sensitive data. It also includes a license key file for an application. Upon boot, I automatically mount this disk which restores the ...
1
vote
1answer
57 views

What is the RDUSB00E6Setupd process running by launchd

What is the RDUSB00E6Setupd process running by launchd in a Macbook Pro with Mavericks? I can't find any information about this and my computer is running quite slow, trying to figure out what is ...
1
vote
1answer
560 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. ...
1
vote
1answer
44 views

How do I determine where a process is being started from, and disable it?

When I start OS X (Mavericks) and run ps aux | grep postgres from Terminal, I have a process that was automatically started: postgres 132 0.0 0.1 2526456 7936 ?? Ss 10:04PM ...
1
vote
0answers
76 views

Adding comments to /etc/launchd.conf

Since I migrate to Maverick, I cannot add comments anymore to entries in /etc/launchd.conf, like: # setenv VAR VALUE Is there a new format for adding comments there ? When I restart launchctl ...
1
vote
1answer
415 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 ...
1
vote
2answers
458 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
120 views

Making file associations launch a certain extension, but with a console program?

It is possible using the right click menu on "Open With" to get the option to choose an application to open a certain file extension. You can then say "Always Open With This". That works if the ...
1
vote
2answers
1k views

Grey Volume bar - coreaudiod - Job failed to exec(3) for weird reason: 2

I've just installed the Mavericks 10.9.1 update and my audio is not working. The volume bar is obscurely grey, and the mac is becoming slightly slow. I checked the console to see anything related to ...
1
vote
1answer
77 views

Start a process at boot

I need dnsmasq to run at boot on Mavericks. I've got dnsmasq working fine. I've created a .plist file in /Library/LaunchDaemons with the following contents: <?xml version="1.0" ...
1
vote
1answer
157 views

Launchpad apps in folders limit - OS X

I was wondering if there is anyway to remove the Launchpad limit for apps in folders. I'm looking for having one folder for all apps under the same category but Launchpad is limiting me to only 28 ...
1
vote
0answers
34 views

What happens if a launchd process starts again before finishing

I'm looking to create a backup script that uses rsync to move pictures, but I'm curious what would happen if the rsync process takes longer than the time between launchd triggers? Will it recognize ...
1
vote
1answer
305 views

configure ssh launchctl

I would like to configure sshd. My ssh.plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN""http://www.apple.com/DTDs/PropertyList-1.0.dtd"> ...
1
vote
1answer
166 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 ...
1
vote
2answers
313 views

Need Help with an Applescript / plist

This has been a learning experience for me. Everything checks out logically to me in this script/ plist but something isn't correct. Everything runs, but then the script runs every minute which is ...