We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e5d7db6 + 8392988 commit 3fcc3b0Copy full SHA for 3fcc3b0
lib/specinfra/command/darwin/base/service.rb
@@ -4,8 +4,16 @@ def check_is_enabled(service, level=nil)
4
"launchctl list | grep #{escape(service)}"
5
end
6
7
+ def check_is_enabled_under_homebrew(service)
8
+ "brew services list | grep #{escape(service)}"
9
+ end
10
+
11
def check_is_running(service)
12
"launchctl list | grep #{escape(service)} | grep -E '^[0-9]+'"
13
14
15
+ def check_is_running_under_homebrew(service)
16
+ "brew services list | grep #{escape(service)} | grep 'started'"
17
18
19
0 commit comments