A system for starting, stopping, and managing automated processes.
2
votes
0answers
13 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 ...
0
votes
2answers
43 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
24 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 ...
0
votes
1answer
70 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
45 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 ...
1
vote
1answer
253 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
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 ...
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
42 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 ...
8
votes
3answers
339 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 ...
1
vote
1answer
115 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 ...
2
votes
2answers
60 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
38 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?
3
votes
1answer
164 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 ...
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
100 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
79 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 ...
2
votes
0answers
85 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
193 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
72 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
218 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
336 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
74 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
82 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 ...
2
votes
2answers
249 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
232 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
327 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
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 ...
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?
...
1
vote
1answer
240 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
149 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
417 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
557 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 ...
1
vote
1answer
411 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
97 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 ...
0
votes
1answer
589 views
Is t 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.
But if I try to load it from the ...
0
votes
1answer
87 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
454 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
...
0
votes
4answers
523 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
2k 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
323 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
545 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 ...
1
vote
0answers
128 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
241 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
114 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
1answer
205 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 ...


