title: start-stop-daemon and Valgrind
body: <p>I use start-stop-daemon to start up programs and would like to use it together with Valgrind.</p>
  
  <p>This is how I use start-stop-daemon: </p>
  
  <pre><code>start-stop-daemon --start --background --exec ${BINPATH}/myPgm -- myPgm
  </code></pre>
  
  <p>This is how I use Valgrind on a standalone application (junk): </p>
  
  <pre><code>valgrind --tool=memcheck --leak-check=yes ./junk
  </code></pre>
  
  <p>and that works.</p>
  
  <p>I would want to do something like:</p>
  
  <pre><code>start-stop-daemon --start --background --exec valgrind --tool=memcheck --leak-check=yes --log-file=/usr/magnus/logFile ${BINPATH}/myPgm -- myPgm
  </code></pre>
  
  <p>It seems start-stop-daemon accepts valgrind (if I only have valgrind without it's flags <code>--tool=memcheck --leak-check=yes --log-file=/usr/magnus/logFile</code> it seem to be accepted)
  but start-stop-daemon won't accept it.</p>
  
  <p>I get start-stop-daemon: <code>unrecognized option '--tool=memcheck'</code> for the valgrind flags. </p>
  
  <p>Does anybody know how this can be done?</p>