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

learn more… | top users | synonyms (2)

1
vote
1answer
389 views

Problem configuring mongo db to start up using launch agent

After installing mongodb using homebrew, and following the information that homebrew provided, I did the following: launchctl load -w ~/Library/LaunchAgents/org.mongodb.mongod.plist But got the ...
1
vote
2answers
880 views

Automatically backup JailBreak iPhone DCIM photo directory

Hi I heard that you can write cron job into plist and put it to JB iPhone /Library/LaunchDaemons folder in plist format I would like to backup the photo folder every 300 seconds, so I put a ...
0
votes
1answer
427 views

How do I stop GitHub Conduit?

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

What is com.DesignScience.DSMTTool

Among my list of scheduled tasks is something called "com.DesignScience.DSMTTool" located at /Library/PrivilegedHelperTools/com.DesignScience.DSMTTool What is this? Do I need it?
0
votes
1answer
153 views

Lauchd - Run task multiple times between time interval

I want to run a script every 15 minutes between 12:00 AM and 4:00 AM. Is there a way to do that with launchd? I know you can specify and array of dictionaries using StartCalendarInterval to ...
0
votes
2answers
401 views

Is launchd still being actively developed?

Launchd is an interesting piece of software. It seems like it is working ok, but one would think the brand new way of replacing init would have a few more iterations. Is launchd still under active ...
0
votes
1answer
214 views

How do I launch an app at start up but as a specific user?

I want to launch an app at login but have it running as a specific user. Here's the use case: I turn on my Mac and login in as Ben. In the background iTunes is launched for Bill. Ben can launch his ...
0
votes
1answer
41 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 ...
0
votes
2answers
78 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.
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: ...
0
votes
1answer
223 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
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 ...
0
votes
1answer
870 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" ...
0
votes
1answer
484 views

Is there a way to launch uTorrent and not display the GUI window?

Since uTorrent to my best of knowledge doesen't support a daemon/server mode, I would like to add it to launchd to start upon login (and restart after a potential crash), but without the app window ...
0
votes
1answer
366 views

Mail does not work in scripts launched with launchd

I'm using this setup to be able to send mail from Terminal: http://www.anujgakhar.com/2011/12/09/using-macosx-lion-command-line-mail-with-gmail-as-smtp/ It works great, and I can use it in scripts. ...
0
votes
1answer
374 views

launchd initiated process receiving signal 15 (TERM)

I've installed TotalFinder (a plugin, of sorts, for Finder) and it's randomly being killed off several times a day. I contacted the developer and he didn't have any ideas, but did say a quick google ...
0
votes
1answer
360 views

How force launchd not to look into subfolders with QueueDirectories parameter in launchd.plist

I'm processing images put into specific folder. For that I run script with launchd.plist put into ~/Library/LaunchAgents Everything work smoothly. But I want put resulting files into subfolder of ...
0
votes
1answer
830 views

What is causing an error with getpwuid in Console, and how can I fix it?

I have opened the Console application to find the last error messages raised from the Apache server, and I found this entries, in the "All Messages" section (the default one selected when the Console ...
0
votes
2answers
893 views

Addressing Console.app messages on badly installed and removed software

Ever since I upgraded to 10.7, my computer has been acting funny, I lost my PostgreSQL installation so tried to install it again using the postgres 9.1 dmg from the postgres website. The installation ...
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 ...
0
votes
1answer
34 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
132 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 ...
0
votes
2answers
56 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
17 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 ...
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 ...
0
votes
0answers
79 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
0answers
49 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
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
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
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 ...
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> ...
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
128 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
35 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
228 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 ...
0
votes
0answers
132 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
92 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
424 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 ...
0
votes
0answers
32 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
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
2answers
457 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 ...
0
votes
1answer
185 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
0answers
51 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
1answer
275 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 ...