diff --git a/Formula/openresty-debug.rb b/Formula/openresty-debug.rb index 720d582..71b292e 100644 --- a/Formula/openresty-debug.rb +++ b/Formula/openresty-debug.rb @@ -4,7 +4,7 @@ class OpenrestyDebug < Formula desc "Scalable Web Platform by Extending NGINX with Lua" homepage "https://openresty.org" VERSION = "1.21.4.1".freeze - revision 1 + revision 2 url "https://openresty.org/download/openresty-#{VERSION}.tar.gz" sha256 "0c5093b64f7821e85065c99e5d4e6cc31820cfd7f37b9a0dec84209d87a2af99" @@ -77,30 +77,11 @@ def install system "make", "install" end - plist_options :manual => "openresty" - - def plist; <<~EOS - - - - - Label - #{plist_name} - RunAtLoad - - KeepAlive - - ProgramArguments - - #{opt_prefix}/bin/openresty - -g - daemon off; - - WorkingDirectory - #{HOMEBREW_PREFIX} - - - EOS + service do + run [opt_prefix/"bin/openresty", "-g", "daemon off;"] + working_dir HOMEBREW_PREFIX + keep_alive true + require_root true end def caveats