title: Ubuntu, upstart, and creating a pid for monitoring
body: <p>Below is a upstart script for redis.  How to I create a pid so I use monit for monitoring?</p>
  
  <pre><code>#!upstart
  description "Redis Server"
  
  env USER=redis
  
  start on startup
  stop on shutdown
  
  respawn
  
  exec sudo -u $USER sh -c "/usr/local/bin/redis-server /etc/redis/redis.conf 2&gt;&amp;1 &gt;&gt; /var/log/redis/redis.log"
  </code></pre>