Questions tagged [launchd]

launchd is a Mac OS X daemon that manages launching programs and network services on behalf of the system or individual users. It attempts to replace most of the functionality of traditional UNIX init, cron, inetd, and other system services.

launchd is a Mac OS X daemon that manages launching programs and network services on behalf of the system or individual users. It attempts to replace most of the functionality of traditional UNIX init, cron, inetd, and other system services.

Some additional resources:

51 questions
3
votes
1 answer

How do you give full access w/ chmod to multiple groups? Need to use ACL's?

First of all, thanks for reading. I've had success running a plist launchd job that is in my LaunchAgents folder. It basically calls a small shell script that chmod's a folder's permissions. I then have another job that calls another script that…
2
votes
1 answer

Is it possible to start a docker-machine at macOS (Server) boot?

Now that Apple is dropping certain services in Server.app (postfix, dovecot, DNS, to name a few) it is important to find solutions to keep these running. Apple suggests moving to open source versions, but their document describing the migration is…
gctwnl
  • 171
  • 11
2
votes
1 answer

How do you control the file ownership of a socket managed by launchd

I'm working on writing a daemon that talks to other daemons in the same project over UNIX sockets. For security purposes, it's critical that these daemons only talk amongst themselves (and can't, for example, be connected to by other processes). I…
2
votes
2 answers

How to shutdown VMware Fusion virtual machine on host shutdown

I have a Mac mini running Mavericks server. I installed the Atmail server + webmail vm [a linux centos distribution] in VMware Fusion Professional 6 with the VMware Tools addon. It works flawlessly. I've set it to start on boot and that works very…
Nikksno
  • 23
  • 1
  • 3
2
votes
2 answers

OSX launchctl list does not find my plist

I've created the file /System/Library/LaunchDaemons/com.rundeckd.plist with this content:
2
votes
1 answer

How to find the listener

I have created a services that should listen on port 50051, but is is already in use. So I need to find and kill the listener? Step 1: sudo lsof -i tcp:50051 …
Chris G.
  • 207
  • 1
  • 9
1
vote
1 answer

How to restart a launchd service automatically if it exits with 78 exit code

I am loading a c binary using launchd service. It should be relaoded every time when system restarts. Below is my plist file:
MacDeveloper
  • 111
  • 7
1
vote
1 answer

launchd plist character substitution

I have LaunchAgent plist file that contains the following Program Arguments ProgramArguments /Applications/UniFi.app/Contents/PlugIns/jre1.8.0_121.jre/Contents/Home/jre/bin/java
Bottacco
  • 13
  • 3
1
vote
0 answers

launchd script cannot use StandardOutPath to /var/log when run as non privileged user

I'm created a LaunchDaemon script to run backups for our git repos. I want to run the process as a particular user (git) with the Std & Err logs output to /var/log I get permission denied when launchd tries to create the logs. Aug 18 10:15:00 server…
Rob
  • 247
  • 1
  • 3
  • 13
1
vote
1 answer

MacOS Yosemite: Does setting PATH variable in /Library/LaunchDaemon work?

I launch a thing written in python from plists in /Library/LaunchDaemons in Yosemite and I want it to run some scripots. And it seems not to take PATH fro the plist file. For example if I have this in /Library/LaunchDaemons/com.foo.foo.plist
Stevko
  • 21
  • 3
1
vote
1 answer

Launchd job runs but then quits immediately

I wish to load and run a Lisp program in CCL in the background automatically when my Mac (OS 10.9) boots. I have a launchd plist that I've saved to /Library/LaunchDaemons,
fpt
  • 121
  • 4
1
vote
1 answer

How to generate a signature with a launchd plist?

Is it possible to implement the following shell script completely as a launchd plist to generate a signature with timestamp in the StandardErrorPath / StandardErrorPath files? #!/bin/sh echo "Hi, your FOO.plist was here at $(date)" This one doesn't…
1
vote
1 answer

launchd PathState usage

I am trying to use PathState to start and stop a daemon on Mac OSX. It start when I create a file called /var/cache/myjob/run. However when the file is removed, the daemon doesn't stop again. How do you use PathState to make it stop? The launch…
Erik Martino
  • 113
  • 4
1
vote
0 answers

dnsextd connection to server error

How can I correct these dnsextd errors in my system error log? dnsextd keeps starting and restarting via lanchd. Can I disable dnsextd via command line? dnsextd ConnectToServer: connect - Socket is not connected dnsextd ConnectToServer - retrying…
demet8
  • 113
  • 4
1
vote
0 answers

launchd scheduling puzzler

Here's a puzzler: I have a .plist in /Library/LaunchDaemons which is set to run at 3:01 am every day, but which does not run. However (this is the puzzling part) when it is started with launchctl everything works fine: sudo launchctl start…
shanusmagnus
  • 111
  • 2