-
-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
running brew services start dnsmasq
reports success erroneously when starting dnsmasq fails
#164
Comments
If you set |
"unknown" is a little more honest than differently-colored "started", I guess, but it would be nice if the messages from syslog bubbled up to the user's terminal. I'm specifically thinking about the messages that showed that the service failed to start:
Alternately, instead of the output of
followed by generic or service-specific instructions for verifying that the service is running, along with generic or specific instructions for checking error messages for services/that service. "Run |
It's confusing because basically |
tl;dr: if a service exits with abnormal code 3 and then respawns, shouldn't it throw up an error in
brew services list
or in the output frombrew service restart
andbrew service start
?Note: if this can't be reproduced in supported versions of OSX, it should be closed. This issue was experienced on an unsupported version of OSX> Replication notes are at the end of this ticket; replication might take ~10 minutes on a machine that has dnsmasq running.
Running
brew services list
shows that dnsmasq is running:However, dnsmasq is not a running process:
I attempted reinstalling dnsmasq with brew several times, rebooting the computer, starting dnsmasq with
brew services
and then stopping and starting it withlaunchctl
, and various other things.In the end,
tail -f system.log | grep --line-buffered dns
while runningsudo brew services restart --verbose dnsmasq
to restart dnsmasq produced the following insightful records:From there, I
cd /usr/local/var/run/; ls -al
and lo and behold the directory that dnsmasq is trying to creatednsmasq.pid
in does not exist:As user, I ran
mkdir dnsmasq; ls -al
:After that, the service restarted happily:
Thoughts on how to reproduce: on a computer where
dnsmasq
is installed via brew and runs successfully, do the following:sudo brew service stop dnsmasq
rm -r /usr/local/var/run/dnsmasq
tail -f system.log | grep --line-buffered dns
while runningsudo brew service start dnsmasq
system details: OSX 10.10.5 (14F2511) and brew 1.6.9
The text was updated successfully, but these errors were encountered: