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

learn more… | top users | synonyms (2)

1
vote
2answers
279 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 ...
1
vote
1answer
3k 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
205 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 ...
3
votes
1answer
365 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
252 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
845 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
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
135 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
122 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
265 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
640 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
892 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
337 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
268 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
282 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
362 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
539 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
150 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
194 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
517 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
571 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
505 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
315 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
46 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
344 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
884 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
862 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
221 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
134 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
1k 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
789 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
228 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
377 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
195 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
340 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
394 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
134 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
13k 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 ...