Launchctl-Run manager on mac

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.