Launchctl-Run manager on mac
The previous article mentioned launchctl. I will sort it out based on this clue.
Launchctl is the console (a terminal for human-computer interaction) used to load, uninstall, and control the process.
Launchctl is also the cover of launchd. This is to avoid unexpected problems and to say how the launchctl is running on launchd.
One of the core system components of mac OS during launchd.
The first thing to do when a Mac OS is started is to run launchd, which completes other subsequent startup tasks.
Launchd code is already open-source,
1. launchd can be used as a timer, such as cron in linux.
2. launchd can be used as a directory listener to listen for changes to directory files
3. You can start or stop a service process based on the configuration of launchd, which is the most commonly used.
Launchd uses the plist file as the configuration input. For the file format, see [2] and [3].
Reference
[1] https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/launchctl.1.html
[2] https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man5/launchd.plist.5.html
[3] https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man5/plist.5.html
[4] http://paul.annesley.cc/2012/09/mac-os-x-launchd-is-cool/
[5] https://segmentfault.com/a/1190000000509514? Utm_source = tuicool & utm_medium = referral # articleHeader4