Launchd is a process management daemon, similar to "init". It is commonly used on Darwin-based systems.
Questions tagged [launchd]
640 questions
5
votes
4 answers
mac security command needs write permissions when run by daemon?
I'm tasked with moving a Tomcat/Jenkins installation from the deprecated (and now removed in Yosemite) SystemStarter framework to launchd. It launches and runs fine as a "build" user, except for one thing. Part of our build process involves…

jph
- 2,181
- 3
- 30
- 55
5
votes
2 answers
Mac OSX 10.9.2, launchd error: "launchctl: Dubious ownership on file (skipping)"
I'm getting the same error launchctl: Dubious ownership on file (skipping): ~.plist
nothing found to load from running a launchctl load command in three different locations as follows, and none of them is working:
sudo launchctl load…

Sami
- 1,473
- 1
- 17
- 37
5
votes
1 answer
why did launchd open a port and what is listening?
My router indicates that one TCP port (6183) has been opened by an application I run (unbeknownst to me)
Using the lsof(as answered here)lsof -iTCP:6183 -sTCP:LISTEN, I found that launchd is the culprit.
Is it possible to find out which of launchd's…

okapiho
- 89
- 1
- 6
5
votes
1 answer
How can I launch multiple instances of an application using launchd?
My application is split into two parts. The main application and a helper tool. The helper tool performs a task with elevated permissions.
The launchd plist looks like this: (Only important settings…

Georg Schölly
- 124,188
- 49
- 220
- 267
5
votes
1 answer
How to instruct launchd to wait for volume mount?
OS X, 10.8.x
We're using a launchd plist file (in /Library/LaunchDaemons) to start a server application whenever the machine is started. If the application to start is not on the system volume, rather than on another internal volume, that disk is…

Ákos
- 3,221
- 2
- 12
- 9
5
votes
1 answer
How can I start a Program.app with LaunchDaemons (launchd)?
I've placed the following com.apple.test.plist file in the folder:
/System/Library/LaunchDaemons

Alosyius
- 8,771
- 26
- 76
- 120
5
votes
0 answers
Binding/Listening to privileged port on OSX
I have a requirement to bind a "server type" application to a privileged port (<1024) on OS X 10.6 and higher. The application is normally executed by a user who doesn't have root privileges.
Having read through many threads on this site I found…

helioz
- 910
- 11
- 22
5
votes
1 answer
OS X: How do you create an installer .pkg that sets up one launchd plist as root and one as the current user?
I need to create a package installer on OS X that handles the installation of two launched daemons: one that runs as root and one that runs as the current user. While this is just for a very small internal deployment, I can make no guarantees as to…

Anonymous
- 1,750
- 3
- 16
- 21
5
votes
1 answer
Launchd script running but output is missing (Exited with code: 2)
I am trying to execute a script about every minute using launchd
I added a new launchd job plist that looks like this

Bernd
- 11,133
- 11
- 65
- 98
5
votes
2 answers
Mac Mountain Lion Error - "isn't in fPermittedFrontASNs"
I have a python script that has been converted to a bundled application using py2app. When invoked manually, it runs fine. However, under Mountain Lion, when I try to invoke it using launchd, I get the following error in the system log:
Aug 8…

W. R. Wing
- 69
- 1
- 4
5
votes
2 answers
SMJobRemove succeeds, but plist and helper tool not deleted
I'm trying to remove a privileged helper tool installed via SMJobBless, I'm getting a positive return value and no errors, yet the files at /Library/PrivilegedTools and /Library/LaunchDaemons are not deleted. Do I have to delete these files…

redshift5
- 1,966
- 1
- 18
- 27
4
votes
1 answer
Is there a way to load a LaunchAgent plist programmatically?
I am looking for an alternative way asides using NSTask/system() to run "launchctl load (plist)". Is there an API for this? Something like CFLaunchdHelper or NSLaunchd. I tried searching but didn't find any and TN2083 doesn't have any info about…

radj
- 4,360
- 7
- 26
- 41
4
votes
0 answers
launchd launch agent not executing command
I use the Skype and Adium clients on my Mac at work. I have two scripts (Ruby, if it matters), start_chats and kill_chats that start/kill both applications. These scripts are both executable and work fine from the command line. I used to use cron…

istrasci
- 1,331
- 1
- 18
- 40
4
votes
1 answer
Should macOS daemons be made from the "Command Line Tool" Xcode template?
I have a few questions regarding daemons. Indeed, even the macos developer center has limited information resources.
I want to develop an application daemon that runs after system boot without login.
a) a Daemon; Is it a simple console application…

Pınar
- 81
- 4
4
votes
2 answers
plist for automatically start tomcat on Mac at startup
I want to use a Mac mini as a server. So I've installed tomcat and I want it to start automatically when booting.
On Windows this is called a "services".
I'm new to Mac OS but I read that this is a plist file in the /Library/LaunchDaemon folder.
So…

hering
- 1,956
- 4
- 28
- 43