launchd
Apple | |
2005 | |
プログラミング |
C |
macOS, FreeBSD | |
サポート |
|
システムスタートアップソフトウェア | |
ライセンス | Apache License 2.0 |
http://www.opensource.apple.com/source/launchd/ |
launchdは、デーモン、アプリケーション、プロセス、スクリプトの
launchdデーモンは
Appleはlaunchdを
これらのデーモンが
コンポーネント
[launchdシステムには、launchdとlaunchctlという
launchdはシステムレベルとユーザレベルの
launchctlはデーモンのロードとアンロード、launchdが
launchd
[launchdには、システムのブートと、サービスをロードし
PowerPC MacにおけるMac OS X Tigerのシステムのboot.efi
にそれぞれ
- Open Firmwareがハードウェアを
初期 化 し、それからBootXをロードする。 - BootXがカーネルをロードし、スピンカーソルを
表示 、すべての必要 なカーネル機能 拡張 をロードする。 - カーネルがlaunchdをロードする。
- launchdは
/etc/rc
を実行 し、/System/Library/LaunchDaemons
と/Library/LaunchDaemons
を参照 して、必要 に応 じてplistにもとづいた動作 を行 い、ログインウインドウを起動 する。
ステップ4でlaunchdはジョブを
launchdは、ブート
その
launchdのブートの
launchctl
[launchctlはそれ
プロパティリスト
[プロパティリスト (plist) はAppleがプログラムの
よく
キー | ||
---|---|---|
Label | ジョブの |
|
Program | ProgramかProgramArgumentsのどちらか | |
ProgramArguments | unixコマンドを | |
UserName | ここで |
オプション。デフォルトではrootかカレントユーザ。 |
OnDemand | 10.5では |
オプション。デフォルトではtrue。 |
RunAtLoad | launchdにジョブがロードされたときすぐにタスクを |
オプション。デフォルトではfalse。 |
StartOnMount | ||
QueueDirectories | オプション。 | |
WatchPaths | ||
StartInterval | ジョブをくり | |
StartCalendarInterval | ジョブスケジューリング。 | |
RootDirectory | ジョブを | |
WorkingDirectory | ジョブを | |
StandardInPath, StandardOutPath, StandardErrorPath | ||
LowPriorityIO | ファイルシステムI/Oをするときタスクの | |
AbandonProcessGroup | launchdによって |
オプション。デフォルトではfalse。 |
macOS以外 での使用
[Google Summer of Code Project in 2005の
2006
2006
関連 項目
[- Daemontools
- Runit
- eINIT
- Initng
- Operating System service management
- Super-server
- TCP Wrapper
- Upstart
- Service Management Facility
- systemd
参考 文献
[- ^ “Mac OS X Manual Page For launchd(8)”. 2008
年 1月 8日 閲覧 。 - ^ Daring Fireball: Tiger Details
- ^ Mac OS X Manual Page For launchd.plist(5)
- ^ “ReplacementInit”. UbuntuWiki. 2007
年 7月 2日 閲覧 。 - ^ Prabhakar, Ernest (2006
年 8月 7日 ). “Apple Opens Up: Kernel, Mac OS Forge, iCal Server, Bonjour, Launchd”. 2007年 7月 2日 閲覧 。
外部 リンク
[- System Startup Programming Topics: Creating launchd Daemons and Agents at developer.apple.com
- Technical Note TN2083: Daemons and Agents at developer.apple.com
- Getting Started with launchd cache on web.archive.org originally at developer.apple.com
- launchd in Depth from AFP548, published July 08 2005. The basis for much of this article.
- launchd: One Program to Rule Them All – Google Tech talk video presentation by the developer of launchd.
- All About launchd Items (and How To Make One Yourself): The creation of property lists for launchd
- launchd site at macosforge.org contains the official subversion repository for the launchd source.
- launchd's source code at Mac OS Forge (click on "trunk", then "Zip Archive" to get the full source)
- launchd - FreeBSD-Wiki, launchd ported to FreeBSD