✏️ launchctl
In launchd, control of services is centralized in the launchctl application.
launchctl은 launchd에서 XPC Service, Agent, Daemon을 관리 및 검사하는 애플리케이션입니다.
✏️ launchd
launchd is an init and operating system service management daemon created by Apple Computer as part of macOS to replace its BSD-style init and SystemStarter. There have been efforts to port launchd to FreeBSD and derived systems.
macOS는 launchd 프로세스를 사용하여 데몬 및 에이전트를 관리하며, 사용자는 launchd 프로세스를 사용하여 셸 스크립트를 실행할 수 있습니다. launchd와 직접 상호작용할 필요 없이 launchctl 명령어를 사용하여 launchd 데몬 및 에이전트를 로드하거나 언로드할 수 있습니다.
launchd는 시스템이 시동되는 동안 커널이 컴퓨터를 설정하기 위해 실행하는 첫 번째 프로세스입니다. 셸 스크립트를 데몬으로 실행하려면 해당 스크립트를 launchd로 실행해야 합니다. 기타 데몬 및 에이전트의 시작 매커니즘은 Apple의 재량에 따라 제거될 수 있습니다.
폴더 |
용도 |
/시스템/라이브러리/LaunchDaemons/ |
Apple 지원 시스템 데몬 |
/시스템/라이브러리/LaunchAgents/ |
개별 사용자 기반으로 모든 사용자에게 적용되는 Apple 지원 에이전트 |
/라이브러리/LaunchDaemons/ |
타사 시스템 데몬 |
/라이브러리/LaunchAgents/ |
개별 사용자 기반으로 모든 사용자에게 적용되는 타사 에이전트 |
~/라이브러리/LaunchAgents/ |
로그인된 사용자에게만 적용되는 타사 에이전트 |
🚀 REFERENCE
Mac용 터미널에서 launchd로 스크립트 관리하기
Mac의 터미널에서 launchd를 사용하여 셸 스크립트를 데몬으로 실행할 수 있습니다.
support.apple.com
About Daemons and Services
About Daemons and Services Many kinds of tasks that do not require user interaction are most effectively handled by a process that runs in the background. You can use a daemon or service to: Provide server functionality, such serving web pages.Coordinate a
developer.apple.com
launchd - Wikipedia
From Wikipedia, the free encyclopedia Jump to navigation Jump to search launchd is an init and operating system service management daemon created by Apple Computer as part of macOS to replace its BSD-style init and SystemStarter. There have been efforts to
en.wikipedia.org
'#컴퓨터 과학 [Computer Science] > 운영체제 (Operating System)' 카테고리의 다른 글
[OS - 🍎 macOS] macOS 일련 번호 가져오기 (Find macOS serial number) (0) | 2019.10.12 |
---|---|
[OS - 🍎 MacOS] iOS/macOS 주요 웹 브라우저 방문 기록 파일 경로 (Chrome, Safari, Opera, Firefox, Whale, Chromium, Canary History Database Path) (0) | 2019.09.28 |
[OS - 🍎 MacOS] 데몬(Daemon)과 에이전트(Agent) 정의 및 차의점 (0) | 2019.09.23 |
[OS] 운영체제 (Operating System) 용어 정리 (0) | 2019.08.04 |
[OS] 운영체제 (Operating System, 運營體制) (0) | 2019.04.16 |
댓글