diff --git a/Formula/crab.rb b/Formula/crab.rb index 5b50906..e8cc445 100644 --- a/Formula/crab.rb +++ b/Formula/crab.rb @@ -16,36 +16,12 @@ def install venv.pip_install_and_link buildpath end - def plist - <<~EOS - - - - - KeepAlive - - Label - #{plist_name} - ProgramArguments - - #{bin}/crab - router - - RunAtLoad - - WorkingDirectory - #{HOMEBREW_PREFIX} - StandardOutPath - #{var}/log/crab.log - StandardErrorPath - #{var}/log/crab.log - - - EOS - end - service do - name macos: "#{plist_name}" + run [bin/"crab", "router"] + keep_alive true + working_dir HOMEBREW_PREFIX + log_path var/"log/crab.log" + error_log_path var/"log/crab.log" end test do