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

learn more… | top users | synonyms

0
votes
1answer
42 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
32 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
156 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
930 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
2answers
814 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 ...
0
votes
1answer
82 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
96 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 ...
1
vote
1answer
259 views

Does LaunchAgent prevent repetitive execution of jobs?

I want to automate the execution of a long-running job. It should be launched once per day but only if the prior job isn't still running. Can I accomplish this with launchd and how?
0
votes
1answer
198 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 ...
1
vote
1answer
97 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 ...
0
votes
1answer
235 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. ...
2
votes
0answers
30 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 ...
1
vote
2answers
211 views

Need Help with an Applescript / plist

This has been a learning experience for me. Everything checks out logically to me in this script/ plist but something isn't correct. Everything runs, but then the script runs every minute which is ...
0
votes
0answers
146 views

A way to disable screen resolution change upon login?

I believe Mac OS X stores each user's screen resolution preferences and upon logging in OS X will set that user's resolution. I actually want to disable this entire feature because I have a launchctl ...
1
vote
1answer
2k 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
0answers
179 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 ...
2
votes
0answers
281 views

In Mountain Lion why do remote shells via ssh do NOT inherit the environment of the launchd parent process?

When logging in to my Mountain Lion Mac remotely via ssh I do not get the same PATH variable as when I open a shell locally: The local shell inherits its environment as expected from launchd and ...
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 ...
2
votes
1answer
189 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. ...
8
votes
3answers
696 views

How do I automatically kill processes that leak memory?

I have problems with processes that leak memory. They cause my hard drive to be filled with swap files in /private/var/vm. I would like leaking processes to be killed at sight by the OS. I’m not ...
2
votes
1answer
1k 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
115 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. ...
1
vote
2answers
98 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 ...
0
votes
1answer
179 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?
5
votes
1answer
455 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 ...
1
vote
3answers
713 views

How do I schedule a root command to run at intervals?

I need to run a script in intervals that requires a root user to execute. I created a plist that will call a script in ~/bin/test.sh. user@MBP:~$ ls -lah ~/bin/ -rw-r--r-- 1 root staff 566B ...
0
votes
1answer
218 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 ...
3
votes
1answer
224 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 ...
1
vote
0answers
231 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: ~$ ...
0
votes
1answer
687 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 ...
0
votes
1answer
474 views

Launch Daemon .plist missing. How to get it back?

My system is working fine (iMac running Mountain Lion), except that when I try to import video to iMovie using the built-in iSight camera I see a message "no camera connected". iSight works fine in ...
1
vote
0answers
398 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.
0
votes
1answer
142 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 ...
1
vote
3answers
102 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
2answers
170 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 ...
3
votes
2answers
459 views

Find process associated with launchd

TCP port 5901 is open on my machine and is causing some mischief, and I want to know which process is opening it. When I run lsof -i -P I see that launchd is the process that opened the port. Is ...
1
vote
0answers
438 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
1answer
471 views

Derive the launchd config plist based on a launch label

When I list the currently running services, I see a service I'd like to remove: % launchctl list | grep -i spotify - 13 com.spotify.webhelper Launchctl allows me to stop it via launchctl stop ...
1
vote
1answer
269 views

Use launchd to start VMware's VM on VNC connection

I have a VM (VMware Fusion) with enabled VNC access. I want to be able to access it from the network. Unfortunately, VMware requires VM to be running to be able to accept VNC connections and ...
1
vote
1answer
44 views

Where does mysql register to start itself at boot time?

I've got a Macbook Air that is starting mysql on boot. I've looked in LaunchAgents, LaunchDaemons, .bash_profile and .profile and login items. It's also not in /etc/rc.local. Where else can I look? ...
1
vote
1answer
1k 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?
0
votes
1answer
259 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 ...
1
vote
1answer
762 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 ...
4
votes
3answers
1k views

Can launchd run programs more frequently than every 10 seconds?

I have some services like this that I'd like to run almost immediately after files are modified. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST ...
0
votes
0answers
66 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 ...
1
vote
1answer
706 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
175 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 ...
2
votes
2answers
1k 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 ...
0
votes
1answer
121 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 ...
5
votes
2answers
931 views

How to mount a RAM disk on startup?

I'm trying to mount a RAM disk on startup with this: /Users/Aram/Development/Tools/ramdisk.sh diskutil erasevolume HFS+ "RamDisk" `hdiutil attach -nomount ram://800000` com.aram.ramdisk.plist ...