Skip to content

Commit

Permalink
fix for new homebrew version
Browse files Browse the repository at this point in the history
  • Loading branch information
catskull authored Dec 30, 2024
1 parent 983d43f commit e642d15
Showing 1 changed file with 7 additions and 32 deletions.
39 changes: 7 additions & 32 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -86,37 +86,12 @@ def caveats
Config: #{etc}/elasticsearch/
EOS
end

@plist_manual = "elasticsearch"

def plist
<<~EOS
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<false/>
<key>Label</key>
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_bin}/elasticsearch</string>
</array>
<key>EnvironmentVariables</key>
<dict>
</dict>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>#{var}</string>
<key>StandardErrorPath</key>
<string>#{var}/log/elasticsearch.log</string>
<key>StandardOutPath</key>
<string>#{var}/log/elasticsearch.log</string>
</dict>
</plist>
EOS

service do
run [opt_bin/"elasticsearch"]
working_dir var
log_path var/"log/elasticsearch.log"
error_log_path var/"log/elasticsearch.log"
end

test do
Expand Down Expand Up @@ -156,4 +131,4 @@ def plist
Process.kill(9, pid.read.to_i)
end
end
end
end

0 comments on commit e642d15

Please sign in to comment.