On Apple macOS, a launch daemon is a system service which runs as a regular process, but independently of login/windowing sessions in the background, and frequently with root/administrator privileges. This is in contrast to launch agents, which are linked to sessions, and to system extensions, which run in special sandboxed environments and runtimes.
Questions tagged [launch-daemon]
83 questions
0
votes
1 answer
Image capture using imagesnap command Cocoa app
I am using 'imagesnap' command (via shell script) for capturing image from webcam in my OS X application in background using launchd.
FileName: CaptureCameraPic
#!/bin/bash
timestamp=$(date +"%Y%m%d%H%M%S")
homeDirectory=$HOME/Documents
# Create…

Akshada-Systematix
- 321
- 3
- 17
0
votes
0 answers
How to get Launchd to change /etc/hosts and reset DNS cache?
I've been trying to setup Launchd to block several websites on osX 10.11.6
The script doesn't seem to execute during the scheduled times.
What is strange is that launchd seems to execute the commands when I load the plist, but does not execute the…

BryanWheelock
- 12,146
- 18
- 64
- 109
0
votes
1 answer
Run my app after iOS simulator is booted
I want to run my app automatically in the background after the iOS Simulator is booted (probably after SpringBoard has launched).
On a jailbroken iOS device, I can accomplish this by placing a launchd.plist file inside /Library/LaunchDaemons.
Is…

SaRaVaNaN DM
- 4,390
- 4
- 22
- 30
0
votes
1 answer
What's the different of Program and ProgramArguments
Is there any reference to tell the difference between 'Program' and 'ProgramArguments' in launchdaemon.plist?
I saw some plist only have 'ProgramArguments', but some also have 'Program', I want to make a clear understanding.
Thanks in advance.

Sake Pan
- 45
- 7
0
votes
0 answers
Bash script runs from Terminal but not from LaunchD
I have a script that runs a mysqldump and then a mysql insert from bash. It works fine from terminal, even as root (which I believe LaunchD runs as) but it will not run the mysql insert from launchd, but will run the mysqldump.
Script…

Deej
- 105
- 1
- 1
- 9
0
votes
2 answers
Mac OSX LaunchDaemon on Startup, Shell Script with SSH
I'm hoping someone can help me with this. I've been working on it literally all day...
I want a LaunchDaemon to execute a shell script at startup. Here is my plist file, located at /Library/LaunchDaemons/com.mhi.backup.plist:

Joel G
- 67
- 1
- 7
0
votes
1 answer
SMJobBless and friends
i made an App that was submitted to the Mac AppStore. For some reasons, they refused it, because it was installing a helper tool using the SMJobBless API.
As this helper tool isn't necessary for most of the App's functionality, i have removed it,…

Doodloo
- 869
- 5
- 18
-1
votes
2 answers
How to tell from a launch daemon if macOS is currently restarting?
I have a launch daemon (written in C++) that runs on macOS. Is there a way to tell if the operating system is currently restarting?
(Or the moment after the user hit Apple Logo -> Restart and the OS is winding down.)

c00000fd
- 20,994
- 29
- 177
- 400