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

learn more… | top users | synonyms (2)

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
130 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
119 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
252 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
622 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
869 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
317 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
260 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 ...
2
votes
1answer
271 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
2answers
358 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 ...
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 ...
0
votes
1answer
528 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
405 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
147 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
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
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 ...
3
votes
2answers
507 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
558 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
502 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
306 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
45 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
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?
0
votes
1answer
339 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
862 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 ...
5
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
69 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
845 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
211 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
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 ...
0
votes
1answer
132 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
1k 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 ...
2
votes
4answers
997 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 ...
0
votes
3answers
4k views

How to prevent loading some LaunchDaemons?

I just took a look into /Library/LaunchDaemons and was wondering how many different things I opened up there :) Can I easily remove strange one? How can I disable them during system boot? I see the ...
0
votes
1answer
766 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 ...
5
votes
2answers
1k views

Run a shell script when switching to battery power

User Story: As a MacBookPro user I want to run a script that ejects my USB drive when I disconnect the power source so that I don't have to remember to eject it before grabbing my laptop and hurrying ...
2
votes
0answers
225 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 ...
0
votes
0answers
371 views

TeamSpeak 3 server and launchd

So I followed the instructions on TeamSpeak forum itself. Everybody there seem to put this to work, and I'm the only one who gets simply no result at all. Since people in TeamSpeak forum are more ...
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
0answers
194 views

Guide on removing unused Agents and Daemons to speed up MacOS

Can you point me to a good guide on spotting and getting rid of running Agents, Daemons and Processes that aren't useful to me anyway and are taking up memory and CPU cycles?
1
vote
1answer
337 views

double password entry to access account

I have the Require password 4 hours after sleep ... option in Security and Privacy System Preferences set and am running a script with launchd to suspend my session at a certain time of day (see this ...
1
vote
0answers
392 views

Launch agents not lauching at system startup

I have several plist files in the folder ~/Library/LaunchAgents. They all have the same permissions but two of them (dotjs and pow) are not launching at login, even if they have the key RunAtLoad set ...
3
votes
2answers
133 views

launchd: ask user before performing tasks

Is there a way to get a user-defined launchd task (i.e. like the one in this question) to get user confirmation before executing the task? A popup like the one for scheduled sleep (with yes/no and a ...
10
votes
4answers
12k views

What's wrong with my launchctl config?

I'm trying to auto-run SickBeard on login python /Applications/Sick-Beard/Sickbeard.py <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN ...
7
votes
2answers
396 views

Is loading your desktop before login safe?

I came across an article explaining how to load your desktop before you login. Does anyone know if this works in Lion? Is there any reason I should avoid attempting it? Load your desktop before ...
1
vote
1answer
385 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 ...
0
votes
0answers
24 views

Launch program after inactivity [duplicate]

Possible Duplicate: How can I automatically launch an application whenever the Mac goes idle? I'd like to launch an AppleScript/ App after 30 minutes of system inactivity. e.g. no cursor ...
12
votes
1answer
2k views

Using tmux and pbpaste, pbcopy, and launchctl

I have discovered that tmux breaks pbpaste, pbcopy and launchctl. Is there a good way to make it play nice with these tools?
1
vote
1answer
2k views

Toubleshoot Launchd/Launchctl issue where application won't load

I'm trying to load an LaunchAgent in ~/Library/LaunchAgents and though, from command line, it "appears" to load... (if I try to load it again it says it's "already loaded".) But a process for the ...
3
votes
2answers
2k views

Force launchd to re-read environment variables

Is there any way, short of rebooting, to force launchd to re-read environment variables newly defined in /etc/launchd.conf? Can it be done with launchctl(1)?
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" ...