title: Monit failing to start process
body: <p>I have a simple script that I'm trying to get Monit to monitor. After <a href="http://groups.google.com/group/rubyversionmanager/browse_thread/thread/d1a6c1f6396a8bf6/279b6dacdf898d0a?#279b6dacdf898d0a" rel="noreferrer">some digging around</a> I found this little nugget: <code>start program = "su - myuser -c '/home/user/myscript.rb start' "</code> which I believe should work but looking at the log files it says: </p>
  
  <pre><code>[PDT Oct 30 02:47:17] info     : 'simple_script' start: su
  [PDT Oct 30 02:47:17] error    : Error: Could not execute su
  </code></pre>
  
  <p>Likewise earlier attempts only seem to read the part preceding a space so:</p>
  
  <pre><code>start program = "/home/user/.rvm/rubies/ruby-1.9.2-p290/bin/ruby /home/user/simple_script_daemon.rb stop"
  </code></pre>
  
  <p>results in…</p>
  
  <pre><code>[PDT Oct 30 03:09:49] info     : 'simple_script' start: /home/user/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
  </code></pre>
  
  <p>Which doesn't fail like the first example but still seems to only execute the part preceding the space.</p>
  
  <p>This is my full statement:</p>
  
  <pre><code>check process simple_script
      with pidfile /home/user/simple_script.rb.pid
      start program = "su - user -c '/home/user/simple_script_daemon.rb start' "
      stop program = "su - user -c '/home/user/simple_script_daemon.rb stop' "
      group simple_script
  </code></pre>
  
  <p>If you've got an idea what might be going on I'd love to hear from you!</p>