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
0answers
13 views

Launchd Daemon with aqua session

I wanted to set up jenkins slave on some box running mac OS X to compile my swift project and it seems to be surprisingly hard. In order to achieve this i set up jenkins slave using JNLP. And i wrote ...
2
votes
0answers
13 views

Start Appium server at system boot (MacOS)

I'm trying to setup Appium server to stat automatically after system startup. Also I'd like it to restart after a crash. Appium was installed as a npm package and it launches and works fine when I ...
0
votes
0answers
32 views

How to start a service using Mac OSX's launchctl

Why does my configuration plist file not load as a service using launchctl? I am running OSX Yosemite, and I have read this excellent tutorial on using launchctl ...
0
votes
1answer
55 views

Starting Suricata with launchctl on Mac OS X

Using Mac OS X Yosemite 10.10.3. I'm trying to make Suricata start in daemon mode on boot with launchctl. Here is my /Library/LaunchDaemons/org.suricata.Suricata.plist: <?xml version="1.0" ...
0
votes
2answers
39 views

Unable to remove peruser launchd process

I am constantly getting the following messages in system log: com.apple.launchd.peruser.0 (homebrew.mxcl.memcached[PID]) Exited with code : 64 com.apple.launchd.peruser.0 (homebrew.mxcl.memcached) ...
0
votes
1answer
36 views

Running offlineimap via launchd doesn't survive sleep on OSX

I'm not very well versed in all things launchd but I wrote this plist file that periodically runs offlineimap to fetch new mail from IMAP servers: <?xml version="1.0" encoding="UTF-8"?> ...
0
votes
0answers
6 views

download complete when run from command line but not complete run from launchd

Curious thing. I have a Python script that I've set up through launchd on my Mac to run every 5 minutes. All it does is download a file from a website. My issue/question is that when it's run that ...
1
vote
0answers
36 views

Launchd process stalls Firefox startup on Mac OS Yosemite 10.10.2

I have long wait times up to 2 to 3 minutes when starting web browsers Firefox and Safari. Looked at Activity monitor and saw "launchd" taking up 98% of memory. CPU Time was 1.40.93 at the time. I ...
0
votes
2answers
14 views

Service com.apple.quickook doesn't stop from restarting

Running Mac OS X 10.2.2 in MacBookPro model MacBookPro11,2. I'm having this issue that I could find using console application: A daemon named com.apple.quicklook deosn't stop from restarting after 0 ...
0
votes
1answer
650 views

It is safe delete OSX's /private/var/folders/* at reboot?

Want clean the /private/var/folders/* at the OS X boot, by creating an launchd entry. (AFAIK, the OS X doesn't supports the rc.conf rc.d - everything must be done by creating an entry for the ...
0
votes
1answer
12 views

Unable to refer to iCloud Drive in launchd plist

I have started keeping my AppleScripts in Script Editor's iCloud Drive folder, as oftentimes, I like to reuse or review scripts on multiple devices. Generally I love iCloud Drive. However, I have come ...
0
votes
1answer
60 views

Script to delete all non-admins with launchd or logout script on OS X

I've found a number of articles that touch on this subject but they are not running for me or perhaps because they are years old they do not work OS X 10.10 Yosemite. In short we run Deep Freeze but ...
0
votes
0answers
62 views

OS X Script to delete all non admins with launchd or logout script

I've found a number of articles that touch on this subject but they are not running for me or perhaps because they are years old they do not work OS X 10.10 Yosemite. In short we run Deep Freeze but ...
1
vote
0answers
139 views

How can I diagnose why my launchd task isn't running on schedule?

I've read the launchd.plist man page, Is launchd supposed to pick up "missed" events?, and launchd seems ignore StartCalendarInterval on Yosemite but none of those have allowed me to ...
1
vote
0answers
111 views

Best way to avoid HDD head parking under OSX via bash script

After replacing the optical drive of my MacBook Pro (mid 2012) with a SATA-II HDD, I'm having trouble with the HDD's annoying head parking after short intervals of usage. Since I'm using the MacBook ...
1
vote
1answer
90 views

OSX Launchd /Library/LaunchDaemons

I have created a plist file (see below) and stuck it into /Library/LaunchDaemons/ . (It starts a virtualbox via a script that runs VBoxHeadless .) I can start the plist as user "nobody" sudo -u ...
0
votes
0answers
127 views

Run Launchctl as root programmatically

I'm trying to start our service using launchctl from OSX app as root programmatically, but I get error status -60031. I can run without problems the command in Terminal: sudo launchctl load ...
0
votes
1answer
765 views

Increasing Yosemite maxfile limit for Application

I've been trying to up the maxfile limit and maxfileperproc limit on Yosemite, with no luck. I have created a sysctl.conf file in the etc folder, which has successfully increased the values when ...
1
vote
2answers
121 views

OS X: Run script at Login screen with FileVault on

How to run a script at Login screen (BEFORE user types password to log in)? I have tried launchctl and place the script under both: /Library/LaunchDaemons/ /Library/LaunchAgents/ Still the script ...
0
votes
0answers
37 views

How is a basic daemon made on OSX?

I have an OSX system that I'd love to have some daemons set up on that will automate the updating of all of my console utilities. How would I go about creating and running such daemons? I'd also like ...
2
votes
2answers
3k views

com.apple.emond keeps getting restarted

My system log tells me that the Event Monitor is constantly getting restarted and I have no clue what the actual problem might be. system.log: Oct 19 21:03:44 funkymachinename emond[51201]: ...
7
votes
1answer
731 views

launchd seems ignore StartCalendarInterval on Yosemite

I tried to update Homebrew on time with launchd. My plist file is presented here: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ...
0
votes
0answers
138 views

Launchd Failing to Launch: “Failed to exec(3) for some weird reason”

I have a very simple lanuchd task set to kick off a backup script at a certain time every day. I can run the command perfectly from the command line without any problems, but the following system log ...
0
votes
0answers
49 views

Creating and running a launchd daemon

I'm trying to follow along w/ the tutorial located here: http://www.tuaw.com/2014/06/11/how-to-keep-homebrew-and-xquartz-updated-automatically/ I've properly set up all of the script files, but am ...
0
votes
0answers
31 views

Run per-user specific launchd process as root

I need to figure out how to make a plist file for a certain user run as root. Since the user isn't root, the UserName string is ignored. I only want it to run for this one user, and no other users, so ...
1
vote
1answer
147 views

OSX launchd: No such file or directory

I'm trying to set up a simple repeating task with launchd on OS X. My plist file is in /Users/me/Library/LaunchAgents and all I want it to do is run the command node --version. My plist file looks ...
2
votes
1answer
119 views

How does GitHub Conduit launch itself at startup?

A program called GitHub Conduit (part of GitHub for Mac) runs in the background on my computer. If I kill it, launchd restarts it. The launchd manpage lists every location in which it looks for jobs ...
10
votes
4answers
16k views

Can’t launch daemon with launchctl in Yosemite

I have a launchd daemon placed in ~/Library/LaunchAgents that worked well in Mavericks. But it won’t start in Yosemite public beta. The daemon plist is like this (my username is darksair with UID ...
0
votes
2answers
101 views

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

I would like to do this: When the application VLC is open and I press the space bar, it pauses the video and an itunes starts to play. Then spacebar again would resume the workout video and pause my ...
0
votes
1answer
560 views

Launch a daemon after another daemon on Mac OS X

How one would create a dependency between two daemons launched on system start? I would like to launch sonar when the system starts but it requires mysql server to be already up and running. I ...
0
votes
1answer
95 views

Spaces in paths of LaunchAgents for launchd in (Mac) OS X

I try to add a LaunchAgent with a path set in WatchPaths that contains a space. I tried the plain path and I tried to escape the space character with a backspace as well as adding quotation marks ...
1
vote
1answer
275 views

Launching MAMP using LaunchDaemon not working in Mavericks

I followed the instructions from this page: http://blog.dannykey.com/automatically-launch-mamp-on-start-up/ to try to get MAMP starting at system start-up without a user logging in. I did this before ...
0
votes
1answer
108 views

How to run a launchd task every weekend once?

I am trying to run a ruby program as a cron. I have figured out how to run the ruby program from a launchd The problem is that I don't know how to say "Run the job once every Sunday". Below is my ...
0
votes
2answers
61 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
1answer
141 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 ...
1
vote
1answer
1k 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
526 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
100 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
1k 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
486 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
1answer
331 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
89 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
473 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
192 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
268 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
2k 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
952 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
138 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
368 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
565 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. ...