0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【launchd】設定ファイルの再起動

0
Last updated at Posted at 2026-07-21

前提

~/Library/LaunchAgentsのユーザー領域にある設定ファイルの再起動方法。
リロードはないため、停止→再起度する必要がある。
/Library/LaunchDaemonsにルートディレクトリのデーモンがあるがこれは別コマンド。今回は説明しない。

停止

launchctl bootout gui/$(id -u) ~/Library/LaunchAgents/設定ファイル

$(id -u)はそのまま記述でいい

起動

launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/設定ファイル


以下、補足

$(id -u)を知りたい

id -u
で確認可能。
確認したうえでidを入れてもいいし$(id -u)そのままでもいい。

フルパス指定しないとダメ?

指定しないとダメっぽい。bootoutはフルパス指定しないコマンドもあるが起動は無い。なのでどっちもフルパス指定のコマンドで統一して覚えた方がいいように思える。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?