このAgentとDaemonの設定は、それぞれファイルシステムドメインごとに存在するLaunchDaemonsとLaunchAgentsという2つのディレクトリに配置される。LaunchDaeomonsに配置された設定ファイルはroot権限で動作するPID 1のlaunchdによって処理される。一方、LaunchAgentsに配置され ...
UNIX使いに真のMACPOWERを!本連載では、UNIX使いに向け、UNIX系OSとしてのMac OS Xを解説していく。前回に引き続き、launchdの設定の詳細のほか、launchdの内部構造について踏み込んでいこう。 本来、launchdから起動されたプログラムは、launch(3)のAPI(ServiceIPC)*を ...
A launchd plist. This is a configuration file that tells launchd what to launch, and under which conditions. We'll be looking at several example plists in this month's column. The actual executable ...
rcの一番の問題点は、シェルスクリプトであるということだ。もちろん、シェルスクリプトであることは、先に述べたようにrcの可読性を高める利点であり、UNIXらしい実装の例ともいえる。しかし、特にrcのスクリプトではどうしても逐次的に処理を記述して ...
Mac miniを使ったWordPress自動投稿の旅も、いよいよ第3回。 前回、cronの設定とcaffeinateによるスリープ制御で、自動投稿がようやく軌道に乗りはじめた──と思っていました。 しかし、Macの自動化は、そんなに甘くはありませんでした。 突然の異変:cronが沈黙 ...
Launchd contexts are now unified between GUI logins and command-line logins: for example, you can copy some text in TextEdit, then ssh into the machine as the same user and do a pbpaste, retrieving ...
at.obdev.LittleSnitchUIAgent.plist is a basic 'KeepAlive' plist. Important note #1: launchd considers the "network" to be "up" if you have an IP address. However, it is possible that your local ...
よろず相談お受けします! 『テクノ学び舎』でパソコン・スマホの悩みを解決。 『テクノ学び舎』のデジタル案内人、蓮風(れんぷう)です。 ぼくは Apple 製品を中心に愛用しています。 でも、カレンダー・アプリはかなり便利なのに、かゆいところに手 ...
Two years ago I wrote about a shell script that I used with cron to keep 'critical' applications running. Some of the commenters suggested that I "should" be using launchd. There are times when I ...