From 00e1c456b02615aef59d24272f0de1a3b88952e9 Mon Sep 17 00:00:00 2001 From: Mike Chen <517926804@qq.com> Date: Thu, 9 Mar 2023 18:46:23 +0800 Subject: [PATCH] Add service support --- bloop.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bloop.rb b/bloop.rb index 2392b81..14af735 100644 --- a/bloop.rb +++ b/bloop.rb @@ -48,6 +48,13 @@ def install prefix.install "bin" end + + service do + run [opt_bin/"bloop", "server"] + keep_alive true + log_path "/tmp/homebrew.bloop.stdout.log" + error_log_path "/tmp/homebrew.bloop.stderr.log" + end test do end