launchd is an open-source daemon intended to streamline and accelerate starting and stopping of processes on a *nix OS.

learn more… | top users | synonyms

0
votes
2answers
21 views

User-friendly wrapper or replacement for `at` command under OS X

I often want my computer to automatically add something to my to-do list at some point in the future. In some cases I want to add the same thing at regular intervals. In these cases I use OS X's ...
0
votes
0answers
12 views

terminal-notifier fails silently when called from launchd

I've created a script to update my package manager and post a notification via terminal-notifier. When run manually, it works fine, but when called via launchd (local to the user, in ...
0
votes
1answer
68 views

Launch daemon on startup as a specific user on Mac OS X (Server) Mavericks

I want to launch a CI server (TeamCity 8.1) on startup on a Mac OS X Server running Mavericks. I don't want the CI server to be launched by the root user but by another user on the system. The user I ...
0
votes
1answer
45 views

Mac OS X - can't kill running process

So I've sudo launchctl unloaded a particular app that I need to disable for debugging purposes. The system is live and can't be rebooted unless absolutely necessary. So after unloading the launch ...
0
votes
2answers
24 views

How to tell OS 10.9 to do something whenever I save in a certain application?

How can I automatically execute a shell command, AppleScript or launchd task whenever I "Save" within a specific application? OS: Mavericks
1
vote
1answer
76 views

OSX Mavericks: How can I make a webserver launch at boot and listen to port 80 without running the webserver as root?

According to Apple's launchd documentation: [launchd] Eliminates the primary reason for running daemons as root. Because launchd runs as root, it can create low-numbered TCP/IP listen sockets ...
0
votes
2answers
57 views

Jenkins and provisioning profiles

I'm trying to set my MAC to connect to Jenkins and be ready to build automatically. I've managed to create service that connects to Jenkins, but something is wrong. This is my plist file: ...
0
votes
0answers
26 views

Scheduling a job using launchd to run on the last day of every month

I am using Mac OS X Server 10.8.3. I want to schedule a job using launchd so that the job will execute at 2:00 pm on the last day of every month. How can I schedule this through a plist file? I have ...
0
votes
1answer
29 views

Throttling respawn messages to terminal with launchd: is this normal?

I have a launchd agent set up using the WatchPaths feature. It looks something like <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ...
0
votes
1answer
19 views

How to use launchd's WatchPaths to keep two files in sync

Background: the Mac OS X plist format is binary by default, which is not very good for things like tracking with git. There is a command plutil -convert which can convert back and forth from binary to ...
0
votes
2answers
175 views

Packet filter logging [currently with tcpdump in background as root]

I am running OS X Mavericks and use the "packet filter" firewall. However, it seems that "pflogd" is not available. I found that you can create an interface named pflog0 and then use tcpdump to see ...
1
vote
1answer
67 views

Launchd alternatives

I am writing an application that uses a library that will not work when the application is run as a launchd daemon. There is a bug in the library where it will throw a bus error when used from a ...
0
votes
1answer
52 views

How to start a plist agent running as root at boot

I have installed nginx via homebrew, by default it provides a plist which is symlinked from ~/Library/LaunchAgents and running launchctl load ~/Library/LaunchAgents/nginx.plist starts nginx as my user ...
2
votes
1answer
550 views

Causes of: com.apple.launchd.peruser.501: Exited with code: 1

A subset of our users are reporting that our application refuses to run (bounces once in the dock, and then closes). If we drill into the application bundle (/Application.app/Contents/MacOS) and ...
0
votes
0answers
17 views

Run task periodically depending on last successful run

I am looking for a way to manage a script execution. The only requirement is to execute a command depending on the time of the last successful execution. For example: I want to mirror my latest ...
0
votes
0answers
215 views

Launchd Exited with code: 1

I have been spending way too much time trying to figure this one out. My launchd job keeps giving me the error "Exited with code: 1". Here is the plist: <?xml version="1.0" encoding="UTF-8" ...
0
votes
2answers
51 views

Automating python script on a mac not running

I have tried to have this question answered twice now(1, 2). While both were informative none of the solutions have worked, and I don't know why. The first solution was to use launchctl the second was ...
0
votes
1answer
133 views

Is it possible to stop a service through launchd if the service is started manually?

I am using launchd to start mysql on boot, it is working fine. I am able to stop and start the service using 'launchctl unload' and 'launchctl load' commands. Also I am able to start the service by ...
0
votes
2answers
141 views

Is there something wrong with this launchd plist? Not working, but no error shows up in logs

I've tried this plist file in both /Library/LaunchAgents and /Library/LaunchDaemons but neither seem to work. I can run the shell script it's supposed to call from the command line and it works fine. ...
1
vote
0answers
286 views

Bittorrent clients won't open at all, is my ISP throttling them?

I noticed that the bittorrent client that I normally use, uTorrent, stopped launching. The icon would pop up on my dock for about 2 seconds, then proceed to disappear and nothing would happen. I have ...
0
votes
1answer
713 views

Can I use cron or launchd to run a bash script without being logged in?

I'd like to have a simple bash script run (regardless of whether anyone is logged in or not) akin to putting it in /etc/cron.daily/ on Linux, but on Mac OS X Mountain Lion 10.8.4. If it's possible, ...
0
votes
1answer
303 views

How to start a process with a predefined (in case it is unused) PID?

Is it possible to start/run a process with a predefined PID? In Linux or in OS X (or BSD)?
1
vote
1answer
46 views

launchd - how to get name of file changed

I want to use launchd to kick off a script to backup changed files. It looks like it should work for what I want to do, but I don't know how to pass to my script that launchd starts, the path of the ...
0
votes
1answer
637 views

Exited with code: 1 Error with launchd

I am trying to run a job with launchd which runs a shell script that creates a zip file I then backup. I am receiving the error: 6/26/13 5:04:37.992 PM com.apple.launchd.peruser.501[162]: ...
0
votes
1answer
52 views

Phantom LaunchDaemon process (OSX)

I created a LaunchDaemon a while back to start a shell script I had written. It looks like someone deleted the .plist from /Library/LaunchDaemons. In my system logs (/var/logs/system.log), i see ...
1
vote
2answers
947 views

OSX run script to mount sshfs at login with a plist file

I've read through the man pages for plist and launchd.plist, as well as posts about using plist files to run scripts at login; but I can seem to get things working. My script location and ...
1
vote
0answers
956 views

Why does launchd keep killing processes

I've noticed my system.log is getting flooded with messages like this: May 5 12:56:08 macpro com.apple.launchd[1] (com.apple.qtkittrustedmoviesservice[8568]): Exited: Killed: 9 May 5 12:56:08 ...
2
votes
1answer
3k views

Start Jenkins slave on Mac OS X as LaunchDaemon

I'am trying to start the jenkins' slave.jar on a Mac OS X 10.8.3 using a Launch Daemon so that it runs right after the machine is started. But I'm experiencing a mysterious problem: The LaunchDaemon ...
3
votes
1answer
4k views

How to restart launchd OS X without rebooting?

When I run Zotero/Firefox, they often crash and I am left with zombie processes; after this I cannot open new instances of Zotero or Firefox. I want to get rid of these zombie processes rather than ...
0
votes
2answers
102 views

Scheduling LaunchD for every other week

I would like LaunchD to launch a script every other week. The following works fine for every week, but how can I schedule it to only run every other week? <?xml version="1.0" ...
1
vote
0answers
423 views

Prevent launchd.peruser to launch daemons

Configuration : Mac OSX 10.7.5 on a Mac Mini mid 2010. Context I installed MobileGo a while ago, a backup solution for Android, and I am using Spotify for music streaming. Important : I am also ...
1
vote
1answer
578 views

Running – or only starting – a daemon using launchd

I'm trying to set up YouTrack on OS X Lion Server and have it launch at boot using launchd. I have downloaded the YouTrack jar file which I can successfully run from the command line using java ...
1
vote
2answers
270 views

Is launchd supposed to pick up “missed” events?

I read that if the computer is sleeping when a launchd event is to occur, then launchd will run the event when the computer wakes up. My question is in regards to a computer that is shut down. If ...
0
votes
1answer
825 views

Can't run Node.js Script with launchd on Mac

I'm trying to run a node script every hour on my Mac (OSX 10.8.2 Mountain Lion). According to high ranking search results, the best way to do this is to add a launchd launch agent. For some reason it ...
2
votes
0answers
189 views

Problems with bash script, mysql inserts and launchd

I am developing a automated system, which consists of 3 parts: mysql, bash and launchd. Bash script takes folders of work related stuff, zips, archives and puts info about them into database that is ...
0
votes
1answer
72 views

Launchd File for reverse stream

Does anyone have any ideas why this fails to execute a reverse stream connection when loaded? <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ...
1
vote
1answer
105 views

OS X superuser folders automatically created. Perusers launchd process appears to kill 501

New Apple laptop OSX 10.8.2. I have used OS X but many years previously, and am not familiar with subtleties or changes in com.apple.launchd.peruser.x... I have previously (and in retrospect, ...
0
votes
0answers
840 views

What does this mean and what do I do about it? crucial filesystem check: Fixing Bogus GID 80 on path /sbin/launchd

A few days ago my website got hacked and a malicious file called images.pl was uploaded which creates a backdoor that allows the file's author to upload/download/do whatever they want. Later I found ...
2
votes
1answer
754 views

How to reliably mount a shared folder /volume/folder at boot up

Following is my sample.sh in /usr/local/bin/ #!/bin/sh mkdir -p /Volumes/folder mount -t afp -o rw afp://user:password@server_name/folder_name /Volumes/folder Following is my com.apple.sample.plist ...
8
votes
2answers
7k views

Running app on MacOSX Mountain Lion: Job failed to exec(3) for weird reason: 13

I tried to run an app on my mac but it quickly closes, I've checked the Quarantine flag but that was not the problem, I checked Console and here's the error information: 9/24/12 1:44:19.343 AM ...
1
vote
1answer
431 views

mount ltfs drive at system startup Mac OS X

Mac OS X Server 10.6.8 LTO 5 drive: IBM System Storage TS2250 Tape Drive HBA: ATTO's ExpressSAS H680 I've installed the HBA and LTO into my Mac and I'm able to format and mount the tape media. I'd ...
5
votes
4answers
3k views

Setting environment variables in OS X for GUI applications

How does one set up environment variables in Mac OS X such that they are available for GUI applications without using ~/.MacOSX/environment.plist or Login Hooks (since these are deprecated)?
1
vote
2answers
833 views

Mountain Lion overheating issue have to do with launchd/Python?

So, Ever since I installed ML, my MacBook Air has been running SUPER hot. Opened up activity monitor, and everything seemed to be pretty normal, until I had it refresh every .5 seconds... and then I ...
1
vote
1answer
762 views

Radiusd keeps getting restarted by launchd

I am reading these errors in the system log file. I have researched this introduction to radius in order to find a solution as to why Radiusd keeps getting restarted by launchd, but I haven't found a ...
2
votes
1answer
1k views

Keep a drive mounted on OS X

I have a WebDav drive that I'd like to keep permanently mounted in the Finder (it's used by a script). What's the best way of ensuring that it gets immediately remounted if it ever gets disconnected? ...
1
vote
0answers
168 views

Getting changed file path with launchd in Mountain Lion

I'm using launchd to watch a directory for file changes. This works fine, but I need to supply the file path to the changed file when the program executes. How do I obtain the file path? Are there ...
3
votes
1answer
727 views

“pbs” process crashing on OS-X

I've been tracking down an odd issue where my active applications will periodically lose focus - meaning. I finally noticed that it corresponded to these launchd notices in system.log: Aug 5 ...
1
vote
1answer
209 views

Using launchd for persistent scripts

I have launchd configured to run a script. This works fine for the user who installed it (me), but it relaunches the script every time I log in, while I'd like it to run as long as the computer is on ...
1
vote
1answer
307 views

Run a script every minute between two times using launchd

I'm trying to run a script every minute (or 20 seconds) between 06:30 and 10:30 every weekday using launchd. I have the script running every minute / X seconds now, but I don't know how to limit this ...
1
vote
1answer
428 views

Schedule bash script 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 ...