A system for starting, stopping, and managing automated processes.
0
votes
2answers
46 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 ...
2
votes
0answers
15 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
1answer
416 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 ...
1
vote
1answer
358 views
Get current StartInterval status from Launchd
If a launchd job has a StartInterval of 600 and it's been "some time" since the plist was loaded.
How can one determine how much time remains until the next scheduled run?
1
vote
1answer
277 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 ...
0
votes
0answers
25 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 ...
4
votes
3answers
3k views
Mac won't boot: Way to mount drive and delete one file?
My macbook is currently a brick. I added a /etc/launchctl.conf file that must be malformed. The OS now crashes even when attempting to start in safe mode:
"launchd System bootstrapper has crashed: ...
0
votes
1answer
90 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
4answers
4k 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 ...
1
vote
0answers
49 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 ...
0
votes
0answers
57 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 ...
5
votes
2answers
459 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
1answer
68 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.
...
0
votes
0answers
21 views
Is it possible to control specific behaviors of a launch daemon (system) on os x?
Is it possible to control specific behaviors of a launch daemon (system) on os x?
For example:
spotlight daemon (com.apple.spotlight.*) controls what do to when a spot light search is made.
-How ...
0
votes
0answers
44 views
Automating Python with launchd & permissions
I setup a Python script to run automatically using launchd (via a .plist)
I wanted this particular script to always run, whether a user was logged in or not, so I put the .plist that "launches" it ...
2
votes
2answers
61 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. ...
8
votes
3answers
340 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
5answers
799 views
Run bash script at login stored in the home folder?
When I try to load a LaunchAgent plist from launchctl I can't find out how to run a script in the home directory.
My code is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC ...
1
vote
1answer
120 views
Plist in /System/Library/LaunchAgents not loading on reboot
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 ...
1
vote
3answers
447 views
To to disable a service form OS X by using recovery console?
I cannot boot my system anymore and I want to disable a service from loading and the only way to do this by using the terminal window from the recovery mode.
launchctl is not available in the ...
3
votes
1answer
167 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
2answers
39 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
51 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
0answers
86 views
Mountain Lion - Environment Variable is not being used
I am trying to set some environment variables in ML. To do so, I set following in my /etc/launchd.conf
sentenv FOG_PROVIDER 'AWS'
sentenv FOG_REGION 'us-west-1'
sentenv REDISTOGO_URL ...
1
vote
3answers
106 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
80 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 ...
11
votes
3answers
1k views
Can anyone recommend a good tutorial for writing (from scratch) a cron-style launchd job?
I've got a fairly simple job that I'd like to run every hour. I could do it using cron, but I thought I'd use this to learn about launchd, since I hear good things about it. I've got the man ...
2
votes
0answers
87 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
2answers
83 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 ...
1
vote
0answers
194 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:
~$ ...
1
vote
1answer
128 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 ...
0
votes
1answer
76 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
230 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
342 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
113 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
75 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 ...
3
votes
2answers
2k views
How to properly increase ulimit -n on Lion?
I'm trying to download the X-Plane 10 Demo through uTorrent, however I get a "too many open files" error all the time. I can do the alternate download (which takes forever and a day), but I wonder how ...
8
votes
2answers
3k views
Too Many Open Files
Which command / configuration file controls the open file limits on OS X? Is there a different command for OS X 10.5 / 10.6 / 10.7? The options I explore below are ulimit, sysctl, and launchctl
...
2
votes
2answers
253 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
237 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 ...
0
votes
1answer
330 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 ...
22
votes
4answers
18k views
Why am I getting a “dubious ownership of file” error when Launch Agent runs my .plist file?
I have a Launch Agent configured to run a .plist file for example: /Library/LaunchAgent/foo.plist. Inside this .plist, it is set to run during LoginWindow and Aqua.
When I attempt to launch my ...
1
vote
1answer
35 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?
...
0
votes
1answer
151 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
242 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?
1
vote
1answer
206 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 ...
0
votes
1answer
421 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
570 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
50 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 ...
3
votes
3answers
819 views
Automatically relaunch a closed application
I have an application that opens when I login.
Is there a way to relaunch it automatically if it crashes or if I close it inadvertently?
(the application in question is Transmission if there is any ...


