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

learn more… | top users | synonyms (2)

0
votes
0answers
70 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 ...
2
votes
2answers
924 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
243 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
137 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 ...
1
vote
3answers
5k 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
849 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
245 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
398 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
148 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
199 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
362 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 ...
2
votes
0answers
399 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
136 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 ...
11
votes
4answers
14k 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
482 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
389 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 ...
13
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
3k 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
2k 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" ...
7
votes
2answers
9k views

Stopping LaunchAgents and Daemons

I work as admin in a college environment. One of the challenges is to stop the services installed by students with CS major. Some time back they got the admin access and installed launch agents and ...
1
vote
1answer
2k views

Setting a static route every boot with launchd / plist is failing

I hope to use launchd to set a static route on a server at boot time since I haven't figured a better way to configure this sort of networking on a server. My problem is that the command seems to be ...
6
votes
6answers
2k 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
2answers
526 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?
0
votes
0answers
166 views

How do I remove the updatetoolnotifier from launchctl?

Over a year ago I was working with the Glassfish app server. It apparently installed an "update notifier" that occasionally checks for updates and presents a dialog like this: Since I'm no longer ...
8
votes
2answers
7k 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
1answer
434 views

10.7 Launchd + rvm

This question fits somewhere between server fault, stackoverflow and askdifferent. I am installing some web apps on my Lion server using webappctl, which hooks into apaches vhost configs to setup up ...
4
votes
2answers
4k 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 ...
1
vote
1answer
2k views

Automatically Load LaunchDaemon?

I wrote a little script to automatically update my Network Location based on a couple of conditions, and have coupled that with a launchd plist to have it run every couple of minutes. However, I've ...
2
votes
1answer
1k views

Launchctl difference between load and start, unload and stop

I was reading through the launchctl man page and have a few questions about its functioning: What is the difference between load and start, unload and stop? Where do I find the job label for a ...
0
votes
2answers
900 views

Addressing Console.app messages on badly installed and removed software

Ever since I upgraded to 10.7, my computer has been acting funny, I lost my PostgreSQL installation so tried to install it again using the postgres 9.1 dmg from the postgres website. The installation ...
4
votes
1answer
298 views

What is the difference between cron and lauchd?

What is the difference between cron and lauchd? I have always used cron, but I have recently heard that launchd is better. Why? In what ways is cron better? In what ways is launchd better?
6
votes
1answer
1k views

How can I run a job once a day with launchd, regardless of when the computer is on?

I would like to run a shell script daily, but not necessarily at a specific time. The computer the script runs on is switched on at irregular times, and no assumptions can be made when that will be. ...
4
votes
1answer
6k views

Should I be concerned if the helpd process is eating RAM after an upgrade to Lion?

Hallo, I've recently upgraded to Mac OS Lion from Snow Leopard on my 2009 Unibody Macbook. Now, checking in activity monitor I often find a strange process named helpd taking large parts of the memory ...
4
votes
2answers
388 views

Make locator.updatedb run daily on Snow Leopard w/o hacking /System/Library?

On Snow Leopard, the locate database is updated once a week by a launchd job, /System/Library/LaunchDaemons/com.apple.locate.plist. I'd like to make the updater run daily, but AFAIK it's considered ...
9
votes
3answers
4k views

ssh-under-cron stops working in OS X 10.7 Lion

Just upgraded from Snow Leopard to Lion, and my cron jobs that use ssh have stopped working. It appears that ssh-agent is no longer functioning as expected. Here's a bowdlerized version of my ...
3
votes
3answers
3k views

Finding the true status of launchd jobs

launchctl list launchctl bstree These show which jobs are active, dormant or inactive, allegedly. I have never seen an inactive job personally. Even ones that I have tried to inactivate show as ...
0
votes
2answers
401 views

Is launchd still being actively developed?

Launchd is an interesting piece of software. It seems like it is working ok, but one would think the brand new way of replacing init would have a few more iterations. Is launchd still under active ...
2
votes
1answer
735 views

Lingon open source version for editing launchd on Leopard (10.5)?

I'm looking for a free GUI app to help run programs on a schedule. It seems that launchd is the underlying tool to use, and in the past Lingon has been recommended as a good GUI interface to launchd. ...
1
vote
3answers
702 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 ...
1
vote
1answer
258 views

How do I turn the echo service on in Snow Leopard?

I'd like to temporarily turn on the echo service (TCP and UDP port 7) on in Mac OS 10.6 (Snow Leopard). I guess this involves using the launchctl/launchd?
1
vote
1answer
3k views

How to control apache service on OS X (start/stop/restart/graceful restart)?

I have Apache installed on OS X and I want to know what command I can use to: start apache stop apache restart apache gracefully restart apache Also I want to know if the commands were successful ...
2
votes
2answers
1k views

How to run a nightly backup job on Snow Leopard Server via launchd

I have been trying to configure a nightly backup job on my Mac Mini server, and after a lot of Googling and digging and man-page'ing, I figured out that launchd seemed to be the correct too, and tried ...
1
vote
2answers
592 views

How can I break a persistent association between .xcodeproj files and Xcode 4.2 beta?

I've got Xcode 4.0.2 installed in /Developer, and the Xcode 4.2 beta in /XcodeBeta. My problem is that the .xcodeproj file type is now associated with Xcode 4.2 and I can't change it to Xcode 4.0.2. ...
1
vote
2answers
885 views

Automatically backup JailBreak iPhone DCIM photo directory

Hi I heard that you can write cron job into plist and put it to JB iPhone /Library/LaunchDaemons folder in plist format I would like to backup the photo folder every 300 seconds, so I put a ...