diff --git a/nginx.rb b/nginx.rb index 2930392..5d9b3e0 100644 --- a/nginx.rb +++ b/nginx.rb @@ -152,30 +152,10 @@ def caveats EOS end - plist_options :manual => "nginx" - - def plist; <<~EOS - - - - - Label - #{plist_name} - RunAtLoad - - KeepAlive - - ProgramArguments - - #{opt_bin}/nginx - -g - daemon off; - - WorkingDirectory - #{HOMEBREW_PREFIX} - - - EOS + service do + run [opt_bin/"nginx", "-g", "daemon off;"] + keep_alive false + working_dir HOMEBREW_PREFIX end test do