You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I ran brew services start nginx, I would get a message saying that the service had been successfully started. This was also reflected in the output of brew services list. However when I checked my running processes, there was no sign of nginx actually running. Even more baffling, if I ran sudo brew services start nginx, then the nginx process would finally appear.
What I finally realized was that nginx was failing to start because of a permissions issue that only occurred when I tried to start it as an ordinary user. In my case, it was because my nginx logs in /usr/local/var/log/nginx were owned by the root user, and my shell user did not have write access. So, nginx would fail to start.
The problem appears to be that brew is unaware when nginx fails to launch because of a configuration or permissions issue. This is a problem because I need to frequently reload nginx when making changes to configuration files, which often cause errors I need to fix. I would like to see that nginx failed to load (and the error output) when I run brew services restart nginx.
Is this possible?
The text was updated successfully, but these errors were encountered:
When I ran
brew services start nginx
, I would get a message saying that the service had been successfully started. This was also reflected in the output ofbrew services list
. However when I checked my running processes, there was no sign ofnginx
actually running. Even more baffling, if I ransudo brew services start nginx
, then thenginx
process would finally appear.What I finally realized was that
nginx
was failing to start because of a permissions issue that only occurred when I tried to start it as an ordinary user. In my case, it was because my nginx logs in/usr/local/var/log/nginx
were owned by the root user, and my shell user did not have write access. So, nginx would fail to start.The problem appears to be that brew is unaware when nginx fails to launch because of a configuration or permissions issue. This is a problem because I need to frequently reload nginx when making changes to configuration files, which often cause errors I need to fix. I would like to see that nginx failed to load (and the error output) when I run
brew services restart nginx
.Is this possible?
The text was updated successfully, but these errors were encountered: