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

learn more… | top users | synonyms (2)

1
vote
2answers
311 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
93 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
118 views

How to stop an app from launching on Login?

I have created an app, that sets itself to launch at Login using SMLoginItemSetEnabled. Here is the code it uses. My question is, how can I manually remove this app from launching at login? The app ...
5
votes
1answer
615 views

/etc/launchd.conf setenv value containing whitespace

In my /etc/launchd.conf file, I added these lines in an effort to figure out exactly how to create globally scoped environment variables whose values contain whitespace. setenv foo1 123456 setenv ...
3
votes
1answer
255 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
1answer
34 views

speed up launchctl execution

I've set up a bunch of scripts that need to happen when I connect my thunderbolt dock at home (disable wifi, enable bluetooth, ...). To detect the thunderbolt dock I make use of the following ...
2
votes
1answer
430 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 ...
2
votes
1answer
150 views

launchd keeps restarting my binary in /Library/PrivilegedHelperTools

I am looking to install a privileged helper tool using SMJobBless. My plist only contains the MachServices key and RunAtLoad key. The RunAtLoad is set to true as I want to be launched automatically ...
2
votes
1answer
269 views

How do I increase “ulimit -u” (max user processes)?

I can change all of the usual ulimits via (for instance) ulimit -n 8192 and launchctl limit maxfiles 8192 8192. Somehow, this doesn't seem to work for -u, the maximum number of user processes: ~$ ...
1
vote
1answer
350 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
214 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
1answer
74 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
141 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
1answer
140 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
1answer
835 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 ...
0
votes
1answer
163 views

What is com.apple.launchctl.Aqua?

While troubleshooting a slow boot time in Lion (10.7), I saw these lines in the sys log: 8/21/13 8:47:45.102 PM com.apple.launchctl.Aqua: load: option requires an argument -- D 8/21/13 8:47:45.102 PM ...
0
votes
1answer
45 views

What are launchd's LaunchAgents directories for?

I created some job plist files and put them in ~/Library/LaunchAgents. Now I don't see the point of this special directory (see launchd manpage). When I want to load a job, I have to specify a whole ...
0
votes
1answer
232 views

start ntpd with launchdaemon

I would like to start an ntpd on my MacOSX 10.8. ntpd is configured correctly and runs when started manually. I would like to start it on boot time with lauchdaemon. I created this ...
0
votes
1answer
112 views

on-demand launch agent restarting automatically

As title says I have created a on-demand launch agent that listens to socket and is launched on incoming connection. It works well and after it has done it's job I want to quit it. After quitting ...
0
votes
1answer
121 views

Setting .plist path to user Library

I have created a OS X launch agent that is installed per user. It is listening socket and automatically launched when socket connection arrives. On my .plist I have ...
0
votes
1answer
210 views

Dependencies for LaunchAgent so it mounts a bundle before other daemons run

I have following setup: I have a sparsebundle on an external disk containing steam (it wouldn't install on my internal disk - something about the format). But by now I depend on this approach as this ...
0
votes
1answer
132 views

Launchd starting a new process

I currently have a process that is running some shell scripts that then a call to an API. When it makes the calls, there might be like 10-15 seconds when the script is waiting for the external API to ...
2
votes
0answers
51 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 ...
2
votes
0answers
34 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 ...
2
votes
0answers
222 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 ...
1
vote
0answers
54 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
0answers
70 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, ...
1
vote
0answers
33 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
0answers
194 views

launchd crowds syslog with error-messages

I'm running Mountain Lion 10.8.3 and have some problem with repeated error-messages crowding the /var/log/system.log file. Apr 19 15:15:14 pc49 com.apple.launchd[1]: * process 1 exceeded ...
1
vote
0answers
404 views

Where's launchd.conf gone in Mountain Lion?

Or is this page outdated? As man launchd.conf still shows the man file as before.
1
vote
0answers
552 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 ...
1
vote
0answers
194 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?
1
vote
0answers
392 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 ...
0
votes
0answers
11 views

Console invocation to launchd plist job

Is there any tool that can convert console invocation to launchd plist job? I have command to test like this: date >> /tmp/example_filet.txt or ruby script.rb -p -t -b n,g,b -o 'file to ...
0
votes
0answers
34 views

Customized default user profiles randomly not loading

I manage Macs in public computer labs and classrooms at a university. My general set up is as follows: Clients are running 10.8.5, OD Masters are running 10.7.5. Open Directory Master to manage ...
0
votes
0answers
20 views

Bootstrap context issues when logging in via ssh with private key

I use ssh to connect to my laptop remotely. Recently, I decided to improve security by using a private key to authenticate instead of a password. I am able to connect and login with my user account, ...
0
votes
0answers
19 views

I need a background process which redirects a link based on whether or not an external hard drive is connected

Basically I have two iTunes libraries. One is my complete iTunes library which I store on my external hard drive. The other is a smaller version that I keep locally. I want to have a symbolic link ...
0
votes
0answers
19 views

launchctl StandardInPath not being passed to file?

I've got a plist file that I've set up to pass a certain file as the standard input to a command it runs: <key>StandardInPath</key> <string>/Users/michael/somefile</string> ...
0
votes
0answers
25 views

Which user's privileges do I use to run MariaDB?

I installed mariadb from Homebrew. It'll be used for CMS access through PHP. I want the DB to start when the system starts up so I added the homebrew/ mariadb-supplied launchctl plist to ...
0
votes
0answers
69 views

Launchd Multicast Socket Listener

I'm not sure if I've just missed some documentation or not, but I'm having a hard time figuring out how to set up a launchd agent that can be triggered whenever a datagram is received within a ...
0
votes
0answers
31 views

com.user.loginscript[ ]): Exited with code: 1

Whenever we restart our server it changes our DNS and apache settings. I haven't been able to figure out why, so I wrote a quick script to restore these to safe settings on login to fix Mac OS X ...
0
votes
0answers
123 views

Untrusted apps are not allowed to connect to or launch Window Server before login

<?xml version="1.0" encoding="UTF-8"?> <plist version="1.0"> <dict> <key>Label</key> <string>com.ash.login</string> ...
0
votes
0answers
63 views

My Launch Agent not lauching at system load

i'm trying to make a simple Launch Agent that run a test app at system load. I followed the official documentation, but can not get it to work. my plist file is located at ...
0
votes
0answers
29 views

Launch upon login fails (glims agent)

Somehow, the Glims Agent doesn't launch anymore when I login with my regular user. I got the root process running, but not the one for my user. When I manually run the following line in terminal, ...
0
votes
0answers
54 views

how can I receive external display connection notification in launchd?

How does one receive notification from notifyd (or equiv) when the display configuration changes? My goal is to fire off some daemons when connected to my thunderbolt display "dock". Any example ...
0
votes
0answers
28 views

Upgraded to OS X 10.8, scheduled job stopped working

I'm using QuincyKit, a crash reporting system for OS X and iOS apps. It contains a component that runs on my development machine and symbolicates the submitted crash reports. It's supposed to run on ...
0
votes
0answers
42 views

AWStats & Launchd Permissions issue

I have an issue where I need to call a perl script with sudo. I have it parked in a bash script which I am calling with launchd every hour. It's a web stats interim database called AWStats. I want ...
0
votes
0answers
69 views

Is there a simple way for daemons and agents to communicate?

I've got a daemon that periodically checks for, and if applicable updates, some software (macports) and I'd like the user to get a GUI indication, using terminal-notifier, when that occurs. Since ...
0
votes
0answers
367 views

TeamSpeak 3 server and launchd

So I followed the instructions on TeamSpeak forum itself. Everybody there seem to put this to work, and I'm the only one who gets simply no result at all. Since people in TeamSpeak forum are more ...
0
votes
0answers
161 views

How do I remove the updatetoolnotifier from launchctl?

Over a year ago I was working with the Glassfish app server. It apparently installed an "update notifier" that occasionally checks for updates and presents a dialog like this: Since I'm no longer ...