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?

はじめに

Homebrewのサービスで、設定ファイルを指定して起動する方法を紹介する。Homebrewのサービスを利用する際に、各サービスの設定を変更したい場合に有用。

動作確認環境

方法

Homebrewのサービス起動時に、--file={設定ファイルパス}オプションをつけて起動する。

コマンドフォーマット
brew services start {サービス名} --file={設定ファイルパス}
  • --file={設定ファイルパス}で、設定ファイルを指定する

なお、デフォルトのサービス定義ファイル(*.plist)は以下のフォルダに作成される。

デフォルトのサービス定義ファイルの保存フォルダ(Macの場合)
~/Library/LaunchAgents

まとめ

Homebrewのサービスで、設定ファイルを指定して起動する方法を紹介する。Homebrewのサービスを利用する際に、各サービスの設定を変更したい場合に有用。具体的なサービスの設定方法については別記事で紹介する予定。

参考

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?