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
1answer
33 views

Schedule bash sript for one time use on OSX

I'm trying to do a little script that, as a function, will take a file and date as input and delete that file on the specified date. So I only need it to schedule to run once, and that's it. I'm on ...
0
votes
2answers
51 views

setting environment variable for launchctl

I've set up this todo.txt add-on and now I want to run todo.sh recur every morning. I've got Lingon (a Mac GUI) running the command, but I get the following error: 5/15/12 10:33:00.067 AM ...
0
votes
1answer
31 views

Launchd WatchPaths does not respond to changes but only mounted files and disks

I'm running Snowleopard 10.6.8 on a Macmini server and I want this server to execute a script whenever a file or folder is inserted/edited or deleted from a specified folder. Since I'd like this ...
0
votes
0answers
25 views

is there a way to find out when launchctl think a launchd job will fire next time?

I have a number of launchd jobs with specific firing day/times. I am wondering if there is an easy to ask launchctl (or some other system service) when each of them will fire next. Of course it is ...
0
votes
1answer
44 views

Convert cronjob to launchctl plist

I should convert this cronjob to a launchctl plist. Is this possible? 0 8-18 * * 1-5 /usr/bin/curl -s --data "par1=a&par2=b&press=OK" http://mydomain.com/file.php /dev/null
1
vote
0answers
88 views

How can I periodically run a shell command using launch agents on Mac OS X?

We have a Kerberos single-sign-on system in our company. This means that I can just type kinit user@DOMAIN in the terminal, and then I can access all IT resources like file servers, internal wiki, svn ...
0
votes
1answer
202 views

How do I stop this message?

I’m on a Mac running OS X 10.6.x and I’m seeing this launchd error message repeated constantly in Console.app: How can I stop this error message? 3/3/12 3:35:03.002 PM ...
0
votes
0answers
326 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
195 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
53 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
53 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
64 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 ...
6
votes
1answer
3k 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
38 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
300 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 ...
3
votes
3answers
379 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
384 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
225 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
5k 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
102 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
558 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
356 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
313 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
2k 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
380 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
167 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
983 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
640 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
413 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
3answers
750 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
872 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
290 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
2k 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
352 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
271 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
494 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
891 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
550 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
1k 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
294 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
175 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
8k 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
223 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
303 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
4k 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
855 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
2k 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
2answers
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
789 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 2