Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the meaning yellow service "started" status on Homebrew?

Tags:

homebrew

When I tried brew services list command, dnsmasq, nginx status started but yellow. php71 and mysql is started and green.

Previously when my Mysql status started but yellow Mysql doesnt work.

Now my nginx and dnsmasq status started and yellow but everthing works fine.

What is the meaning started but yellow written status? Everything ok or?

like image 415
rgn Avatar asked Jan 26 '17 12:01

rgn


3 Answers

Unfortunately the yellow color means status unknown. Wonder why it says started though.

I just found out because the status for apache 2.2 on OS X 10.11.6 is yellow as well. Don't know if it's actually working properly.

Here's what the homebrew-services ServicesCli code says

# For backwards-compatability showing unknown state as started in yellow colour

https://github.com/Homebrew/homebrew-services/blob/6e7ea0cff515df8b5d53a6e3066e16cf5e94d03a/lib/services_cli.rb#L147:L159

EDITS: Update code reference. Thanks @SidOfc

like image 104
Husterknupp Avatar answered Nov 12 '22 22:11

Husterknupp


The following steps worked to solve this for me:

  1. Remove the postmaster.pid file for your service (i.e. rm /usr/local/var/postgres/postmaster.pid).

  2. Restart your service on homebrew (i.e. brew services restart postgresql).

like image 40
Anthony Dito Avatar answered Nov 12 '22 21:11

Anthony Dito


I had this just now for mariadb, and solved it by running brew reinstall mariadb.

I had just installed a new version of MAMP and I suspect something of MAMP had overwritten something related to mariadb.

like image 5
Jasper Kennis Avatar answered Nov 12 '22 21:11

Jasper Kennis