title: grav Mac OS X plist setup
body: <p>MI have just installed Grav locally and would like it to run as a daemon. Apparently on Macs that's done in <code>~/LauchAgents</code></p>
  
  <p>I have tried to setup the <code>.plist</code> but it's not working. As I am new to Macs I wondered if anyone knew how to setup a local service? Here is what I have so far...</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;grav&lt;/string&gt;
      &lt;key&gt;ProgramArguments&lt;/key&gt;
      &lt;array&gt;
        &lt;string&gt;/usr/bin/php&lt;/string&gt;
        &lt;string&gt;~/grav/php -S system/router.php&lt;/string&gt;
        &lt;string&gt;--httpListenAddress=127.0.0.1&lt;/string&gt;
        &lt;string&gt;--httpPort=8000&lt;/string&gt;
      &lt;/array&gt;
      &lt;key&gt;RunAtLoad&lt;/key&gt;
      &lt;true/&gt;
    &lt;/dict&gt;
  &lt;/plist&gt;
  </code></pre>