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

learn more… | top users | synonyms (2)

2
votes
2answers
125 views

How to reset OS X volume after sleep using launchd?

I'm been trying to write a plist file on which when I return from sleep mode, I always want to make my Mac volume to the minimum amount. However, it looks like the following plist doesn't work, with ...
2
votes
2answers
2k 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 ...
2
votes
2answers
964 views

Run plist command every 5 seconds

I have the following plist file in my User/Library/LaunchAgents folder. It presses the "g" key every 60 seconds. My question is, how can I change this to press the "g" key every 5 seconds? ...
2
votes
2answers
2k views

Is there a way to load a LaunchAgent as another user?

From a script run as root I copy a LaunchAgent .plist to /Users/xyz/Library/LaunchAgents. If I load that via launchctl logged in as user xyz it works without problems. If I try to load it from the ...
2
votes
1answer
1k 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 ...
2
votes
1answer
354 views

Why is my launchd job running at boot even with RunAtLoad key set to false?

I have a launchd plist file that I use to run a program at a selected time every day. It works, but it also runs the program whenever I boot the computer or unload and reload the job using the GUI ...
2
votes
1answer
184 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 ...
2
votes
2answers
354 views

Turned off everything in folder /LaunchDeamons with launchctrl; can’t boot now—how to recover?

In an effort to shut down the httpd server, I was going to execute this command: sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist Instead this was executed: sudo ...
2
votes
2answers
128 views

Is there a way to make launchd stop a service on sleep and start it up again on wake?

I have several pieces of server software installed on my MacBook Pro for work using Homebrew. There is one service in particular, that likes to peg the CPU after the OS wakes up from sleep until I ...
2
votes
1answer
619 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 ...
2
votes
1answer
236 views

How can root launch a regular Mac application from a cron job in /etc/crontab?

I want the cronjob to do some things as the superuser, and depending on the result, launch an app as me, the logged-in user. I've tried a bunch of things but nothing I think should work does. ...
2
votes
1answer
422 views

10.7 Launchd + rvm

This question fits somewhere between server fault, stackoverflow and askdifferent. I am installing some web apps on my Lion server using webappctl, which hooks into apaches vhost configs to setup up ...
2
votes
1answer
686 views

Lingon open source version for editing launchd on Leopard (10.5)?

I'm looking for a free GUI app to help run programs on a schedule. It seems that launchd is the underlying tool to use, and in the past Lingon has been recommended as a good GUI interface to 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
24 views

What is the location of this Application's file?

This application shows in Finder at path (with target): Macintosh HD/Applications/Trans_Helper.app/Contents/MacOS/applet and I have not been able to successfully start it with launchd, using ...
2
votes
1answer
228 views

How to run multiple commands on reboot using launchctl/plist?

In OS X, you can write a plist file in ~/Library/LaunchAgents/ (or something similar, depending on what permissions/users you like it to be operated on), and load it using launchctl to make it ...
2
votes
1answer
50 views

Running script through launchd with no annoying prompts

I have an applescript that checks my macbook battery and forces hibernation when it reaches a certain level, after displaying a 60 sec countdown. I've successfully set it up to run in the background ...
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
1answer
433 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
153 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
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
1answer
2k views

Plist in /System/Library/LaunchAgents not loading on reboot [closed]

I have created the plist and placed it in /System/Library/LaunchAgents/. However, when I reboot my Mac it does not load like it is expected to. I am able to load it from the Terminal with launchctl ...
2
votes
2answers
129 views

Running Growl without a user logged into a graphical session?

I currently have an OS X server (running 10.8.2) that has irssi installed, and is set up to send Growl notifications to my laptop when I am mentioned or have received a private message on IRC. ...
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: ~$ ...
2
votes
4answers
988 views

Editing System/Library files with Property List Editor (PLE)

I want to update the schedule in /System/Library/LaunchDaemons/com.apple.locate.plist. I have unlocked the file in Finder but the Property List Editor is giving me: The file ...
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
2answers
374 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. ...
1
vote
2answers
221 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 - ...
1
vote
2answers
284 views

Shell or Applescript to delay shutdown?

We have a workstation that gets used sporadically, and I'm trying to setup a script that backs it up during shutdown. I created a LogoutHook in com.apple.loginwindow to a 1-line bash script, that ...
1
vote
1answer
3k views

Disable Screen sharing via the command line in mountain lion

I want to be able to enable and disable screen sharing from the command line rather than through System Preferences. This is on 10.8.3 To enable screen sharing, I find I only need to change a ...
1
vote
1answer
858 views

What's the difference between launchd and folder actions?

Could someone please briefly explain to me the difference between launchd and folder actions? Do folder actions use launchd? Is one more efficient than the other? Is one more powerful than the ...
1
vote
2answers
1k 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 ...
1
vote
2answers
192 views

How can I remove remnant processes from deleted preference panes?

I discovered in Activity Monitor that I have several leftover processes running in the background that shouldn't be there anymore. I deleted these preference panes long ago with an application that ...
1
vote
1answer
1k views

prevent launchctl from starting a anonymous process

I have installed dnsmasq and now I want to be able to start it with launchctl. The problem is that every time I start the app launchctl starts an anonyous process instead of using the specified label. ...
1
vote
1answer
2k views

Need to know what's the contents of /var/db/launchd.db/com.apple.launchd/overrides.plist from Mac OS X Mountain Lion?

I accidentally issued the following command: # launchctl load -w /System/Library/LaunchDaemons/ I wish to see outputs of mac os x mountain lion launchd% list command. See below on pastie the current ...
1
vote
3answers
104 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
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
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 ...
1
vote
1answer
1k views

launchtl: any way to disable a daemon after removing the plist file?

I was trying to permanently disable a 3rd party daemon, so I deleted its plist file from /Library/LaunchDaemons-- and then I realized that I hadn't done a launchctl unload on it first; trying after ...
1
vote
1answer
145 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
1k 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
658 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
85 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
122 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
874 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
591 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
245 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 ...