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

learn more… | top users | synonyms (2)

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
383 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
2k 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
394 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
676 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
643 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
241 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
537 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
844 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 ...
1
vote
1answer
735 views

How to automate execution locate.updatedb by using a bash script

I am looking for a bash set of commands that will enable me to schedule the execution of /usr/libexec/locate.updatedb once every day. Please respond only with a set of command line commands, because ...
4
votes
3answers
4k 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: ...
2
votes
2answers
936 views

Run plist command every 5 seconds

I have the following plist file in my User/Library/LaunchAgents folder. It presses the "g" key every 60 seconds. My question is, how can I change this to press the "g" key every 5 seconds? ...
1
vote
1answer
1k views

prevent launchctl from starting a anonymous process

I have installed dnsmasq and now I want to be able to start it with launchctl. The problem is that every time I start the app launchctl starts an anonyous process instead of using the specified label. ...
13
votes
3answers
2k views

Why is cron being deprecated?

I just found out that cron has been deprecated in Mac OS X. Why is this, and will it eventually be completely removed from future releases?
8
votes
2answers
3k views

Automatically delete a folder daily

Is there a way to automatically have a folder deleted every day at 4am? I'm running 10.6.7.
4
votes
3answers
770 views

Can't quit app launched through launchd

As it says in the title, "Can't quit app launched through launchd"—or more precisely, I can quit it, but it then automatically restarts again. Background: I prefer to use BusyCal, not iCal, but ...
4
votes
1answer
6k views

Running a command whenever Mac boots up with launchctl/plist

I need to run nohup nice synergys -f --config ~/bin/conf/synergy.conf & command whenever the computer boots up. As is written in this post, I came up with the following plist code. <?xml ...
4
votes
1answer
1k views

Stopping a macports installed mysql daemon

I'm trying to reset my root password on a macports installed MySQL on OS X. But none of the ways to do this that I can find works, for various reasons. One reason common to all is that I can't stop ...
4
votes
2answers
980 views

How to automate DropBox startup without logging in

I'd like to have DropBox running under multiple user accounts on a Mac, even after a reboot. The Mac auto logs in as one user, not me. How to best achieve this?
36
votes
4answers
32k 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 ...
0
votes
1answer
208 views

How do I launch an app at start up but as a specific user?

I want to launch an app at login but have it running as a specific user. Here's the use case: I turn on my Mac and login in as Ben. In the background iTunes is launched for Bill. Ben can launch his ...
4
votes
2answers
2k views

How can I stop com.apple.launched from attempting to start a service we uninstalled?

My office used to use JungleDisk Workgroup service to exchange large files. We've moved on to a new solution and I uninstalled the client according to their instructions, but I noticed today in the ...
4
votes
3answers
1k 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 ...
15
votes
4answers
3k 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 ...
3
votes
2answers
569 views

LaunchDaemon not recognised

I've installed CouchDB via MacPorts. Now I want to start it when my Mac boots, so I executed the instructions given in the install process: sudo launchctl load -w ...