Tagged Questions

launchd is an open-source daemon intended to streamline and accelerate starting and stopping of processes on a *nix OS. It is intended to totally replace the following daemons or systems of scripts: inetd/xinetd init and init.d rc and rc.d atd crond watchdogd SystemStarter The wikipedia page is ...

learn more… | top users | synonyms

0
votes
0answers
67 views

OSX: Howto start VirtualBox VM on startup?

The Question How do i start this Wiki VM at the startup of the OSX Server? I am running OSX Server 10.6.8 and VirtualBox 4.1.8 r75467 and a Debian Linux VM (called "wiki"). . What I tried so far ...
1
vote
0answers
54 views

OS X 10.6.x: How to use launchd to start a script at specific system events (startup, login, logout, shutdown)?

We've tried to create scripts that run at startup, login, logout and shutdown. We had them up and running with 10.4 but can't get it running with 10.6 What is the right way to use launchd/launchctl to ...
1
vote
0answers
18 views

launchd won't run getmail for one user

I've setup getmail using Lingon in launchd for 2 users on my mac mini server. One user's getmail runs fine and the other user's doesn't. The plist for the launchd entry is: <?xml version="1.0" ...
0
votes
0answers
18 views

Strange recurring peruser error in console log

first time here but found out lots of topics might be similar to mine (one related to a pid 501).... except I think mine is different.... Over the past few days (not really sure when, though) I found ...
0
votes
0answers
31 views

inotifywait alternative command for Mac?

Something like $ macwatch dir_or_file cmd_to_execude_when_arg1_is_changed during which I do not have to write XML. I am aware of ...
4
votes
1answer
763 views

com.apple.launchd: com.apple.launchd.peruser error

It's been a couple of days I am reading these errors in the system log file. 25/11/11 21:31:43,373 com.apple.launchd: (com.apple.launchd.peruser.32697[92747]) getpwuid("32697") failed 25/11/11 ...
0
votes
1answer
27 views

Are LaunchAgents supported by OS X 10.4?

Are LaunchAgents supported by OS X 10.4? I tested them on 10.5, 10.6 and 10.7, and it worked well.
0
votes
3answers
164 views

How to bring application to front every 15 minutes on Mac OS X Lion?

I have a free or cheap little app called Desktop Task Timer LE that I've been using to track my time as I work on various projects. I'd like to have it pop up as the foreground app every 15 minutes to ...
2
votes
3answers
251 views

How to get sshguard to run at startup on a Mac

I have installed sshguard using homebrew on my Mac OS X machine, but would now like to get sshguard to startup automatically when the system starts up. I've tried two approaches. Firstly I've tried ...
3
votes
1answer
222 views

Using launchd to kill and restart Finder in OS X

I'm trying to use a launchagent on login to kill the Finder, and then re-launch TotalFinder, to automatically apply the colorsidebar mod for OS X 10.7 (the mod can be found here). If I use the ...
1
vote
1answer
108 views

launchd WatchPaths directive stopped triggering job

I have a custom launchd job setup to run when a directory changes. It has been running for quite some time now, and up until recently (July 28, 2011) it has been working perfectly. I just realized ...
2
votes
1answer
4k views

ftpd Mac OS X Lion (10.7) setup

How can I set up ftpd to run when my computer restarts and how can I turn it on for port 5021? Mac OS X 10.7 Lion doesn't have a checkbox to turn the ftp server on anymore.
2
votes
1answer
76 views

Cancel a cronjob or an automatically loaded process on OS X

I'm currently being bugged by Mail.app popping open every friday at the same time and simultaniously I receive mails from an app iBackup which I used to have installed. I would like to get rid of it ...
3
votes
1answer
307 views

Using Launchd to invoke a Python script?

As a continuation from my initial question... Routinely backup log file in OSX? I'm attempting to backup a logfile on an OSX computer and a jailbroken iPhone. LaunchD was recommended as a solution ...
0
votes
1answer
157 views

Launchd execute command when folder contents modified or changed

For the past two days i've been trying to get a launchd plist to execute a script "program" when the contents of a folder on my desktop contents have modified or changed. I've gone through tons of ...
0
votes
1answer
220 views

Mac - Run script on startup and another on shutdown

I'm trying to figure out how to get two shell scripts to run automatically. One script to run when the mac is turned on. And another to run when the computer is about to shut down. I'm guessing for ...
1
vote
2answers
1k views

How to permanently “renice” a process on Mac OS X (or iOS, etc)?

I use a nice (free) process manager called ATMonitor for Mac OS X that has a lot of cool hidden features... one of which is being able to click on a running process.. and set the "renice" from +20 ...
3
votes
1answer
196 views

How to get a launchd plist to diretly run a complex 1 line bash command?

I have a somewhat complex bash command which includes some pipes and an if-then-else clause, not to mention calling system program (such as grep) with multiple parameters. Is there a way to create a ...
0
votes
1answer
116 views

Using launchd for short non-daemon tasks

I want to create a "startup item" in os x. All of the recent documentation suggest that launchd should be preferred over traditional Startup Items. However, launchd seems to be geared towards ...
1
vote
2answers
604 views

How to disable/ set logging level /preferences PER Mac OS X application?

I find my Mac's syslogd "Cosole" logs become unusable when some badly written app (PathFinder.app in this case) incessantly spews into syslogd all day long.. I read somewhere that you could disable ...
1
vote
2answers
383 views

Mac Leopard Launchd Daemon created with Lingon wont work

First off: Im absolutely new to Mac, so the problem might be really really basic. I have been trying to set up a Launchd Daemon to run at startup to run a Service via Mono.Frameworks. I used Lingon ...
0
votes
1answer
330 views

Launchd doesn't give apache (XAMPP) all priviledges at startup

I use Mac OS X and use Launchd to automatically start XAMPP. I have set the apache user set to be the same as my account name in httpd.conf User cwd Group nogroup Well, if I just let the computer ...
1
vote
2answers
570 views

How to stop swap process in OS X?

How would I prevent OS X even looking for a swap file? I killed the swap file on my MBP. This is dead easy: just change the default swap file location so the system can't find it (goto ...
2
votes
1answer
575 views

launchd is trying to invoke uninstalled 'SCFinderPlugin.plugin'

At some point, I had tried to install and use 'SCPlugin' on Mac OS 10.6 but found that it wasn't what I needed. According to the installation doc, it said to remove the .plugin file from these ...
0
votes
1answer
240 views

Mac OS X automatic backup: launchd + s3cmd = «Error: Can't find a config file»

I want to setup automatic backup on schedule from my mac to amazone s3. I'm using for this purpose launchd + s3cmd. s3cmd is working fine in terminal.app. But launchd can't run s3cmd. I see in ...
2
votes
2answers
997 views

removing startup item from com.apple.launchd

I installed a program a few months ago, it had a startup option that I did install. Later, I decided to remove the program, but it seems to have left the startup script or item even after I ...
0
votes
1answer
238 views

Is there a way to automatically restart Apache on Mac OS X if it crashes?

I've installed Apache using MacPorts. It crashes every once in a while, and I need to manually restart it. Is there a way to get Apache to automatically restart if it dies for some reason? Perhaps ...
0
votes
2answers
165 views

I can't get XAMPP to start automatically in OS X

I can't get XAMPP to start when OS X boots. I've been researching this for some time but with no luck. XAMPP needs to be started as root, and I don't want to store the password for root in a script ...
0
votes
2answers
436 views

How to load offlineimap plist into launchctl without sudo on OSX?

I'd like to have launchd run offlineimap every few minutes to update my mutt message directory. I can't seem to get the plist file for offlineimap to be loaded into without using sudo though. When ...
2
votes
1answer
678 views

daemons and daemon users (specifically transmission-daemon) on OS X 10.5.8

I'm trying to set up transmission-daemon on a box running Mac OS 10.5.8. I want to do things the right way, which means (to my understanding) create a service user (_transmission, for example) for ...
1
vote
1answer
446 views

Snow Leopard starts launchd for non-existent user

Lately my OS X 10.6.6 system exhibited some weird behaviours. I started snooping around and noticed that launchctl lists an entry for a non-existent user: bash-3.2# launchctl list|grep launchd 1 ...
1
vote
1answer
867 views

How to remove “com.starfield.backupservice” from launchd?

I remember sometime ago, I uninstall an application called starfield, but probably I didn't do a clean uninstall. Now in Console, I always see a annoying message: com.apple.launchd[1] ...
0
votes
2answers
257 views

MDS Worker Not Found

I've removed MDS worker (to get rid of spotlight). In my console it looks like launchd is trying to find it. Anyone know how I could stop launchd for searching for spotlight? (ha) 10-12-10 9:39:27 AM ...
0
votes
1answer
140 views

Can you have a script run whenever you machine wakes up from sleep and/or when the screensaver unlocks? [closed]

Possible Duplicate: Automatically run a program when Mac wakes from sleep I'm interested in both.
4
votes
3answers
5k views

How do I get rid of com.apple.launchd.peruser errors in my log?

I'm getting repeated errors in my console log that look (basically) like this: 10-09-29 10:06:08 AM com.apple.launchd[1] (com.apple.launchd.peruser.501[51581]) getpwuid("501") failed 10-09-29 ...
2
votes
1answer
186 views

launchd - How to skip invocations after waking from sleep?

According to the launchd specs, when using the StartCalendarInterval option: "Unlike cron which skips job invocations when the computer is asleep, launchd will start the job the next time the computer ...
0
votes
1answer
281 views

A process is sending some command to an uninstalled program every ten seconds

A while ago I installed Steam on my Mac... It was a failed attempt as my computer is way too slow to play Portal, so I uninstalled it using AppZapper (I believe). I was doing some computer maintenance ...
1
vote
1answer
1k views

com.apple.launchd.peruser -> org.freedesktop.dbus-session error

I'm getting the following error every 10 seconds in Console Messages. No idea where it comes from. com.apple.launchd.peruser.501[146] (org.freedesktop.dbus-session[47150]) ...
2
votes
3answers
3k views

how to kill process in Mac OS X and not have it restart on its own

When I run sudo kill -9 [PID] with the proper process ID, the process stops but then is restarted and has a new PID. I'm trying to kill the mysqld process. How can I mimic the Activity Monitor in ...
2
votes
1answer
745 views

Automatically starting svnserve on Snow Leopard

Note: I originally asked this question on Server Fault (http://serverfault.com/questions/148052/automatically-starting-svnserve-on-snow-leopard), but I thought this may be a more appropriate place to ...
2
votes
1answer
1k views

Why is iTunes starting and stopping play randomly, and how do I stop it?

Since yesterday morning my copy of iTunes has been starting and stopping randomly. If iTunes is not running, then it opens and sometimes begins playing, other times sits idle. Eventually, after a ...
1
vote
1answer
2k views

Setting environment variables in OS X /etc/launchd.conf

I'm trying to set some env variable in OS X 10.6 (/etc/launchd.conf) setenv M2_HOME /usr/share/maven setenv M2 $M2_HOME/bin setenv MAVEN_OPTS '-Xms256m -Xmx512m' M2 and MAVEN_OPTS are not working. ...
2
votes
1answer
657 views

launchd: Start script when entering a location

Question: Is there a way to configure a LaunchAgent to start (and keep alive) a script when entering a specific location? Example: When switching to the location "Office" i want to trigger a ...
1
vote
2answers
654 views

How to use launchd to ensure an application is running?

I use Quicksilver, which is a nifty program that really speeds up my work. I've set it to launch when I log in. However, since Snow Leopard, it's become a bit less stable, and once in a while, it ...
1
vote
1answer
64 views

Which is the simplest way to exclude an user from a launchd agent?

I have some launchd plists that are now placed at the administrator per-user level, particularly inside: /Library/LaunchAgents /Library/LaunchDaemons I'd like to avoid that some of those services ...
3
votes
3answers
1k views

How to register an agent with launchd

I’m unable to schedule a periodic launch with launchctl/launchd on OS X (Leopard). Basically, I’m unable to find a step-by-step list of instructions on the web and the intuitive approach doesn’t ...
5
votes
7answers
3k views

How can I get a script to run every day on Mac OS X?

Cron? Launchd? iCal?? If so, how?
0
votes
1answer
556 views

Macports Apache not starting at Mac osx snow leopard boot

Macports Apache2 not starting at Mac Osx snow leopard boot. I've done the launchctl load command, the symlinks point to my ...
4
votes
1answer
2k views

Stop a runaway launchd process on OS X Leopard

I created a launchd .plist file to in order to have a python script run every hour. I ended up editing and later deleting the .plist file ( in /Library/LaunchDaemons )... but somehow launchd is still ...
3
votes
3answers
385 views

Prevent app from auto-launching in OS X - what are ALL the places to look?

An app on a Mac that automatically launches on boot and I don't want it to. The app itself offers no way to prevent this. Rather than identify the app, I figured it would be nice to use this question ...

1 2