homebrew-services: How do we see the details if the service shows the state "error"

I installed mysql via brew and I saw that it was working yesterday by list command;

brew services list

But today I see that mysql service has the “error” state even though it looks like it works without a problem.

Now how can we see why brew list says there is an error and how do we see the details of this “error” state?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 4
  • Comments: 25 (20 by maintainers)

Most upvoted comments

--- homebrew.mxcl.mysql.plist.orig	2016-12-28 04:11:24.000000000 -0800
+++ homebrew.mxcl.mysql.plist	2016-12-28 04:13:54.000000000 -0800
@@ -16,5 +16,9 @@
   <true/>
   <key>WorkingDirectory</key>
   <string>/usr/local/var/mysql</string>
+  <key>StandardOutPath</key>
+  <string>/tmp/homebrew.mxcl.mysql.stdout.log</string>
+  <key>StandardErrorPath</key>
+  <string>/tmp/homebrew.mxcl.mysql.stderr.log</string>
 </dict>
 </plist>

That diff to the plist should work.