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

learn more… | top users | synonyms (2)

2
votes
2answers
183 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 ...
3
votes
1answer
524 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 ...
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 ...
2
votes
1answer
725 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 ...
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 ...
0
votes
0answers
36 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
1answer
251 views

Making items added to paths via paths.d show up everywhere under Mavericks

I'd like to set the path under OS X Mavericks so that the setting shows up everywhere (e.g., in .apps and in Darwin shells). There's plenty of discussion out there about how to set environment ...
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 ...
2
votes
1answer
85 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 ...
3
votes
1answer
297 views

Uninstalling Genieo broke my system

Update below, the rest is more or less background information. After discovering a Genieo install, I vaguely recalled it being, well, not trustworthy. After a quick search I knew I wanted to ...
0
votes
0answers
137 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> ...
1
vote
2answers
653 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. ...
3
votes
2answers
380 views

Add Static ARP Entry at Boot

I'm new to Mac OS X. On Linux I'd: append to /etc/rc.local arp -i eth0 -s 192.168.1.1 00:00:00:00:00:00 I've figured out how to do it in Terminal: sudo arp -s 192.168.1.1 00:00:00:00:00:00 But ...
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 ...
2
votes
0answers
59 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
104 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
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 ...
2
votes
2answers
196 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 ...
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 ...
3
votes
4answers
2k views

no such process error with launchctl start. Mac OSX 10.9

The goal is to set machine's network name with the ipaddress of this machine. I have created a plist file and put it into /Library/Launchagents/. For debugging reason I used the command "launctl ...
2
votes
1answer
639 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 ...
0
votes
2answers
138 views

Need help creating Global Daemon for EyeFi Server

I have been trying to come up with a headless solution for transferring images from an eyefi card to my mac. The software from the vendor is decent, but it will only transfer images if there is a ...
0
votes
0answers
111 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
1answer
463 views

Mavericks makes files synced to SMB share hidden

I have a script running by a LaunchAgent to sync a directory with a remote share. This script is fairly simple, I'll include it here just so nobody suspects the script. #!/bin/bash # Hjälpskript ...
3
votes
1answer
487 views

how to block Adobe, Google and others from installing crap on my Mavericks

Adobe and Google insist on install crap on several folders, like update checkers and things like that. This is the crap I have identified by Adobe. ...
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 ...
5
votes
1answer
185 views

What is the relationship between `launchctl limit` and `ulimit`?

There is not any ulimit configuration in system startup files/ shell startup scripts. ulimit -a shows: -u: processes 1064 -n: file descriptors 256 launchctl ...
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" ...
3
votes
2answers
4k 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 ...
0
votes
0answers
56 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
1answer
890 views

Dynamically setting HOME environment variable in a launchd script?

Continue from this topic, I ended up with: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" ...
3
votes
2answers
5k 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 ...
3
votes
2answers
721 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 ...
5
votes
2answers
1k views

What is the difference among the various event schedulers for OS X / Darwin?

I'm confused about the differences among the three (that I know of) tools for scheduling running of code on OS X / Darwin: cron launchcd pmset I understand that cron is largely deprecated, but it ...
45
votes
8answers
37k 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
2answers
2k views

Getting launchd to read program arguments correctly

I have a launchd script where the command I'm trying to run is erroring (apparently that's not a word, it is now), complaining of improper usage. The specific error I'm getting is the command's usage ...
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 ...
0
votes
1answer
2k views

Launchd won't load plists at boot

I have a set of scripts that need to run on system boot and stay alive. I have the plist saved as /Library/LaunchAgents/net.vps.tunnel.plist and it has the proper permissions: -rw-r--r-- 1 root ...
2
votes
1answer
255 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 ...
4
votes
2answers
533 views

Run a launchd job after Time Machine backup

Quite simply, I have a process that's triggered by launchd but currently runs once an hour, however really what I would like it to do is run once a Time Machine backup has completed. Initially I ...
4
votes
3answers
1k views

How can I find what process is starting apps in the background?

I keep seeing CIJScannerRegister running. I'd like it to never run. Every time it appears I use launchctl to remove its listing and that kills the app. But it reappears later. I know where ...
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
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$ ...
2
votes
1answer
217 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 ...
1
vote
2answers
354 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
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
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 ...
0
votes
2answers
479 views

Restart OS X if an application has crashed/is not responding/beachballed?

How can I automatically restart the machine if an application has crashed in any way? It might have cleanly exited, have a quit unexpectedly error, or be frozen with the spinning beachball. I don't ...