Open garethmidwood opened 4 years ago
The result is that I can't access the site. If I then try to restart apache:
$ sudo apachectl -k restart
httpd not running, trying to start
Turns out it's not running!
The site does work once I've done this.
I wonder if it's still trying to do sudo apachectl -k stop
when sudo apachectl -k start
is run. Maybe just a sudo apachectl -k restart
would be better?
Annoyingly there isn't a status
command which I would rely on heavily here. Instead I just have to run silly stop / start commands and hope everything is fine. 👎
I had mixed luck with restart
which is why I am doing stop/start separately but can give it a shot.
Could be worth a brew services list
and grep in the result?
This is worth trying for now but it's not always reliable as the started could be yellow signifying there is an issue.
I'm not 100% sure yet exactly how to recreate this, but sometimes when I start an environment I get this: