Launchd is a process management daemon, similar to "init". It is commonly used on Darwin-based systems.
Questions tagged [launchd]
640 questions
-1
votes
1 answer
How to keep a macOS Launch Agent open until the app that requested the service is closed?
Working on my first macOS Launch Agent using XPC.
I need the process that is delivering the service to be started by launchd and to then stay running until the client process that made the initial call is closed.
I have set KeepAlive to true in the…

chemFour
- 140
- 7
-1
votes
1 answer
crontab job installing but not executing on my MAC
I have been trying to run a python script on my MAC every day automatically with no success so far. I failed using launched, and I am now trying to use crontab to see if I am luckier that way.
The script runs OK without using crontab:
cd…

WewillSee
- 279
- 3
- 13
-1
votes
1 answer
A lot of process named "cron" were generated by "launchd" process in MacOS Catalina 10.15.2
After upgrading to the Catalina, My Macbook Pro sometimes will become out of memory which cannot relocate any memory to open new windows or application, the only solution was reboot the OS.
Today, I discovered, in [Activity Monitor], a new "cron"…

zhangv
- 950
- 1
- 9
- 25
-1
votes
1 answer
neither cron nor launchd run python script successfully?
I have written a python script named Music_Scrape.py that resides in the following directory /Users/MY_USER_NAME/code/Python_Projects. The script runs with the terminal command /Users/MY_USER_NAME/code/Python_Projects/Music_Scrape.py. I am…

sjc
- 1
-1
votes
1 answer
launchd does not 'keep alive' processes in El Capitan
I'm trying to make sure a process is always running, even after it quits, crashes or stops in anyway. It's a small binary that reads a serial line and writes to a database - nothing too complex. If it fails to read, it quits with exitcode 70 and it…

Oni
- 652
- 2
- 9
- 22
-1
votes
1 answer
launchd not launching nginx on boot
I have set up launchd to deal with nginx.
Everything was working before el capitan.
I have the file file as /System/Library/LaunchDaemons/nginx.plist :

João Pereira
- 31
- 1
- 6
-1
votes
3 answers
Launch app as daemon - Mac OS X
My app is a Web Server. It runs on Windows as a service, on Linux as a daemon. The support for same is inside the app itself. e.g.
MyWebServer -s
Installs and runs it as a service on Windows
MyWebserver -d
Runs it as a daemon on Linux (Though…

adnan kamili
- 8,967
- 7
- 65
- 125
-1
votes
1 answer
Execute an action if your account does not login within 'X' number of days (OSX)
So, I'm trying to write a script that can perform an action if I am unable to login to my computer with X number of days. An example of this would be to send an email if I don't login after a week. This is mainly for fun, but I want to have some…

November
- 224
- 2
- 11
-2
votes
1 answer
How to automate a ruby program?
I writed a little ruby program that collects starred emails from a mailbox and creates corresponding cards in a kanban-style list-making application (thanks to websites' API). It works fine, but for now I have to run it manually (ruby app.rb).
I'd…

Andy
- 11
- 7
-2
votes
1 answer
LaunchServices logs XPC_ERROR_CONNECTION_INTERRUPTED in mac os x console
1.Service only ran for 0 seconds. Pushing respawn out by 10 seconds
2.LaunchServices: received XPC_ERROR_CONNECTION_INTERRUPTED trying to map database database
launchservices: database mapping failed with result -10822, retrying
I found this two…

S. S
- 169
- 3
- 16