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

learn more… | top users | synonyms (2)

0
votes
1answer
11 views

Print from launchd task

I have a script that needs to be running in the background periodically (I've put it there with Lingon X). That script (PHP based) is 1. polling a server, 2. retrieving a PDF file from the server 3. ...
0
votes
1answer
26 views

How to associate a route with an interface?

I have a Mac with two network interfaces, connected to different networks. For the sake of argument, let's say one is connected to a private network and the other to the Internet. I understand that ...
1
vote
1answer
116 views

Setting environment variable for sudo in Yosemite

I followed this similar question to set my environment variables in Yosemite: ...
3
votes
0answers
111 views

launchd StartCalendarInterval not working reliably

I have several tasks that I run from launchd using StartCalendar interval. Under Yosemite these do not necessarily run. (Under Mavericks and earlier they did run) How do I see what launchd is doing ...
0
votes
1answer
37 views

Setting environment variables for scripts run by launchd?

I have a script that worked in the past, but seems to be having issues now (I believe it's due to Yosemite). What I had done was created an environment variable that was set to "false" and then my ...
0
votes
2answers
139 views

How do you start and stop the Spotlight server in Yosemite?

There are many forums answering this question for previous versions of MAC OSX, but 10.10 doesn't seem to have the service 'com.apple.metadata.mds.plist' in /System/Library/LaunchDaemons. It has 3 ...
1
vote
0answers
115 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 ...
1
vote
0answers
39 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 ...
3
votes
1answer
62 views

Start Apache httpd on boot

Since upgrading to Yosemite, Apache httpd is no longer started at boot time. I've tried: sudo launchctl load org.apache.httpd.plist but I'm getting a service is disabled error. I've modified the ...
6
votes
1answer
4k views

In OSX Yosemite, why can I set many environment variables for GUI apps, but cannot set the specific variable PATH

After I had sorted out OSX' PATH issues up to the Mavericks release, the problems come back in Yosemite!!! So I want to mimic the old launch.conf feature in the new Mac OSX 10.10 Yosemite release, ...
0
votes
2answers
58 views

Launchd unloading LaunchDaemon

I have a script scheduled to run as LaunchDaemon. Script runs fine when launched manually through terminal. I have two commands sudo launchctl unload -F /Library/LaunchDaemons/com.test.plist sudo ...
0
votes
0answers
18 views

Why won't my drush script run as a Launch Daemon?

On the command line I successfully run this: /usr/bin/php /usr/local/opt/drush/libexec/drush.php '@hostmaster' hosting-dispatch or even: drush '@hostmaster' hosting-dispatch and ...
1
vote
0answers
15 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 ...
0
votes
0answers
77 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 ...
2
votes
1answer
2k views

Yosemite com.apple.xpc.launchd error every 10 seconds

Every 10 seconds i get this error in my console: 20/10/14 19:35:56,840 com.apple.xpc.launchd[1]: (com.viber.osx[9850]) Could not find and/or execute program specified by service: 45: Operation not ...
2
votes
2answers
440 views

How do you set the maxopenfiles limit in Yosemite?

How do you set a soft limit for maxopenfiles in Yosemite? I installed Yosemite last night, and now it's ignoring my settings in my /etc/launchd.conf file: $ cat /etc/launchd.conf limit maxfiles ...
0
votes
0answers
86 views

Bash shell doesn't inherit $PATH set in /etc/launchd.conf

I am new mac OS X user and recently I am setting up my laptop as a work environment. That concerns environment variables setting in shell. After some search work I found several ways to set ...
0
votes
1answer
42 views

What is the best practice for creating a daemon with launchd that runs at lower than default priority

I have a daemon I would like have to parallelize up to the number of cores on a user's machine, but I don't want it interfering with foreground tasks. Traditionally, in unix, I would just run this ...
4
votes
1answer
58 views

Launchd starts event 40 seconds later?

I've created a .plist file, which should act as system daemon (global with root user). This .plist file listens to the settings directory for changes like changing network settings. When this happens ...
5
votes
3answers
236 views

Run Script on Logout Without Use of Logout Hook

I've been looking into running a few cleanup commands when a user logs out, however the old logout hook feature, although still functioning, has been deprecated for some time now so may not be with us ...
0
votes
1answer
35 views

start and stop OS X router daemon

I'd like to be able to stop and (re)start the OS X routing daemon and review the routed configuration file(s). I think this would involve using launchctl unload and load, but I don't know the name of ...
0
votes
0answers
8 views

Predicting what jobs launchd will run between some pair of dates/times

I have a number of launchd jobs that are triggered only by time (e.g., "run job X every Tuesday at 5 am"). Can I get launchd (or some other tool) to tell him which of them will run, between, says, ...
0
votes
0answers
50 views

Mac ssh-agent not being started automatically by launchd

A few days ago on my Mac running Mavericks (MacOS X 10.9.4) I noticed that any operations using ssh started to ask me for my ssh passphrase. If you look at... ...
0
votes
0answers
15 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
2answers
79 views

Run script as root whenever any user logs in

What's the best way to run a script with root privileges whenever any user logs in? It should run in the background without prompting the user for a password.
3
votes
1answer
275 views

launchd with high disk usage

launchd is producing a lot of I/O activity. In the last day and a half it managed to write 12 GB of data while reading 500MB. I the logs I do not see anything suspicious. Any suggestion at where ...
0
votes
0answers
103 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
38 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
21 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 ...
3
votes
2answers
112 views

Run action when device is detached

I'm using a launchd agent to run a shell script whenever I connect my thunderbolt dock. I've been able to use IOKit notifications to detect when the dock is being attached, but I also want to run a ...
2
votes
1answer
54 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 ...
0
votes
1answer
63 views

Where does Applescript Event Log go when run under Launchd?

Or, how to log from an AppleScript (saved as application) and/or view the Event Log? None of the AppleScript's log statements can be found. I have tried adding the following to the launchd plist: ...
2
votes
1answer
30 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 ...
0
votes
0answers
24 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> ...
1
vote
1answer
54 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 ...
0
votes
1answer
229 views

Enable SMB sharing from command line

On OS X 10.8, using terminal commands, I'd like to enable SMB sharing as if I had ticked the following checkbox under System Preferences - Sharing - File Sharing - Options: I've tried the following ...
0
votes
0answers
27 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
1answer
129 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 ...
2
votes
1answer
106 views

Show running launchctl

When I run sudo launchctl bslist ... it shows all the running /System daemons, but I have some running from /Library/LaunchDaemons and it is not showing those. How can I show them?
0
votes
1answer
430 views

How do I stop GitHub Conduit?

How do I stop GitHub Conduit and keep GitHub.app from reinstalling the job in launchd?
1
vote
2answers
356 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 - ...
0
votes
2answers
77 views

How to add a timestamp in log files on launchd?

In launchd, you can change the path of the log files in .pist file using StandardOutPath and StandardErrorPath, but when I used it to output the log returned by the process, the resultant log files ...
1
vote
1answer
531 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
140 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 < ...
2
votes
2answers
162 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
461 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
638 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 ...