title: Nginx not started, homebrew says it is
body: <p>brew services says nginx is started..</p>
  
  <pre><code>MacBook-Pro-van-Youri:Homebrew youri$ brew services start nginx
  Service `nginx` already started, use `brew services restart nginx` to restart.
  </code></pre>
  
  <p>Same for launchctl</p>
  
  <pre><code>MacBook-Pro-van-Youri:Homebrew youri$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist 
  /Users/youri/Library/LaunchAgents/homebrew.mxcl.nginx.plist: service already loaded
  </code></pre>
  
  <p>My homebrew.mxcl.nginx.plist</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
  &lt;plist version="1.0"&gt;
    &lt;dict&gt;
      &lt;key&gt;Label&lt;/key&gt;
      &lt;string&gt;homebrew.mxcl.nginx&lt;/string&gt;
      &lt;key&gt;RunAtLoad&lt;/key&gt;
      &lt;true/&gt;
      &lt;key&gt;KeepAlive&lt;/key&gt;
      &lt;false/&gt;
      &lt;key&gt;ProgramArguments&lt;/key&gt;
      &lt;array&gt;
          &lt;string&gt;/usr/local/opt/nginx/bin/nginx&lt;/string&gt;
          &lt;string&gt;-g&lt;/string&gt;
          &lt;string&gt;daemon off;&lt;/string&gt;
      &lt;/array&gt;
      &lt;key&gt;WorkingDirectory&lt;/key&gt;
      &lt;string&gt;/usr/local&lt;/string&gt;
    &lt;/dict&gt;
  &lt;/plist&gt;
  </code></pre>
  
  <p>brew services list says the following:</p>
  
  <pre><code>MacBook-Pro-van-Youri:LaunchAgents youri$ brew services list
  Name    Status  User  Plist
  mariadb started youri /Users/youri/Library/LaunchAgents/homebrew.mxcl.mariadb.plist
  nginx   error   youri /Users/youri/Library/LaunchAgents/homebrew.mxcl.nginx.plist
  php71   started youri /Users/youri/Library/LaunchAgents/homebrew.mxcl.php71.plist
  </code></pre>
  
  <p>The syntax is oke:</p>
  
  <pre><code>MacBook-Pro-van-Youri:LaunchAgents youri$ plutil -lint homebrew.mxcl.nginx.plist 
  homebrew.mxcl.nginx.plist: OK
  </code></pre>
  
  <p>When i run <code>sudo nginx</code> i can access my website</p>