Skip to content

Commit 7949ac6

Browse files
authored
Merge pull request Homebrew#199214 from Homebrew/cloudflared_service
cloudflared: add service.
2 parents 5831bfb + 5a1c351 commit 7949ac6

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

Formula/c/cloudflared.rb

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ class Cloudflared < Formula
44
url "https://github.com/cloudflare/cloudflared/archive/refs/tags/2024.11.1.tar.gz"
55
sha256 "1bf729c225701f6864b31bb6c251293caa06f9f1a6e671f3326dd20c3c9719ff"
66
license "Apache-2.0"
7+
revision 1
78
head "https://github.com/cloudflare/cloudflared.git", branch: "master"
89

910
bottle do
10-
sha256 cellar: :any_skip_relocation, arm64_sequoia: "cc09eb8b677d672577e1ed2fd36afd0145dc332ab9ff15eafee7525a0ca6c8fb"
11-
sha256 cellar: :any_skip_relocation, arm64_sonoma: "7247b8823d3308fc067a5c3fae0d3d6d981f08bf3d6fce2f240d73a32e92894e"
12-
sha256 cellar: :any_skip_relocation, arm64_ventura: "bc10590791eed97736281e1fc971ef45bf9245e2d1dabdc0b084308a3d688a8f"
13-
sha256 cellar: :any_skip_relocation, sonoma: "1ddc4480753d9236cc8f92c8e63859be54490a8c47f823beaf3814c18d0a1fab"
14-
sha256 cellar: :any_skip_relocation, ventura: "ebcef72c9affd47a05524527507ce6756a5844dd676bb3e8d514c92e41d12128"
15-
sha256 cellar: :any_skip_relocation, x86_64_linux: "b46a2b27b98b82ae0536890828aacffd0b8a272d4cbc858ea414b97be902bff0"
11+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "07d4134b91fe1115235f0a3daae9f7393867ca82d1c01b705a9d685ea9805903"
12+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "77e61c7f0895ff962b5957e7ae43af78e83cf2d28f2825e1fa77f41e987c01af"
13+
sha256 cellar: :any_skip_relocation, arm64_ventura: "8640b280ea07699648d15f2567593d41935ffe2e459fff04a1d5e07b8aad0da8"
14+
sha256 cellar: :any_skip_relocation, sonoma: "3bd28cfb6cc90e0c2ea3d5627f520b23c66d9deb7631d3a78fd16a31c7b18b61"
15+
sha256 cellar: :any_skip_relocation, ventura: "bddb768669fa4d5c38a6665d2f395a301e4ee9281208994e319c23fdb0059d90"
16+
sha256 cellar: :any_skip_relocation, x86_64_linux: "d896179cb61f7122542eb17df62ed7c82335d66de4d96f80a0c0474fda3ad130"
1617
end
1718

1819
depends_on "go" => :build
@@ -25,6 +26,13 @@ def install
2526
"PREFIX=#{prefix}"
2627
end
2728

29+
service do
30+
run [opt_bin/"cloudflared"]
31+
keep_alive successful_exit: false
32+
log_path var/"log/cloudflared.log"
33+
error_log_path var/"log/cloudflared.log"
34+
end
35+
2836
test do
2937
help_output = shell_output("#{bin}/cloudflared help")
3038
assert_match "cloudflared - Cloudflare's command-line tool and agent", help_output

0 commit comments

Comments
 (0)