GitHub Conduit は起動時にどのように起動しますか?

GitHub Conduit は起動時にどのように起動しますか?

GitHub Conduitと呼ばれるプログラム(Mac 用 GitHub) はコンピュータのバックグラウンドで実行されます。終了すると、launchd再起動します。

マニュアルlaunchdページには、起動時にジョブを検索するすべての場所がリストされています。

$ man launchd
[snip]
FILES
     ~/Library/LaunchAgents         Per-user agents provided by the user.
     /Library/LaunchAgents          Per-user agents provided by the adminis-
                                    trator.
     /Library/LaunchDaemons         System-wide daemons provided by the admin-
                                    istrator.
     /System/Library/LaunchAgents   Per-user agents provided by Mac OS X.
     /System/Library/LaunchDaemons  System-wide daemons provided by Mac OS X.

私はこれらのフォルダをそれぞれ確認し、GitHubコンジットにはいずれにもファイルがありません。また、ユーザーとグループの設定も確認しましたが、ログイン項目には表示されていません。

ちなみに、launchctl list com.github.GitHub.Conduit出力は次のようになります:

{
    "Label" = "com.github.GitHub.Conduit";
    "LimitLoadToSessionType" = "Aqua";
    "OnDemand" = true;
    "LastExitStatus" = 15;
    "PID" = 596;
    "TimeOut" = 30;
    "ProgramArguments" = (
        "/usr/libexec/launchproxyls";
        "com.github.GitHub.Conduit";
    );
    "EnableTransactions" = true;
    "MachServices" = {
        "com.github.GitHub.Conduit" = mach-port-object;
    };
    "PerJobMachServices" = {
        "com.apple.CFPasteboardClient" = mach-port-object;
        "com.apple.tsm.portname" = mach-port-object;
        "com.apple.axserver" = mach-port-object;
    };
};

質問

起動時に GitHub Conduit が起動するのはなぜですかlaunchd? また、必要に応じてこれを停止するにはどうすればよいですか?

答え1

私もこのプロセスが動いているのに驚きました。どうやら github アプリによってインストールされた Web サーバーのようです。これを停止して github を使い続けることはできないようです。

GitHub for Mac を実行すると、自動的に Conduit が起動し、Mac OS X に Conduit を稼働し続けるように指示します。そのため、Conduit がクラッシュしたり、アクティビティ モニタまたは kill で終了したりすると、GitHub for Mac が実行されていなくても Conduit は再起動します。

詳細こここの機能のセキュリティについては、この質問

答え2

解決しました! OS X 10.11 では、設定は次の場所に保存されます:

/var/db/com.apple.xpc.launchd/loginitems.{uid}.plist

私の場合、そのファイルは次のようになります。

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>com.github.GitHub.Conduit</key>
    <string>com.github.GitHub</string>
    <key>version.com.github.GitHub.Conduit</key>
    <string>161</string>
</dict>
</plist>

関連情報