title: init.d script for running second mysql server fails
body: <p>I have 2 mysql servers, one is set with all the mysql defaults (port,socket, etc.) and the second is set to port 3307 and a different socket with defaults file called my-dev.cnf .</p>
  
  <p>when i run:</p>
  
  <pre><code>/usr/bin/mysqld_safe --defaults-file=/etc/my-dev.cnf 
  </code></pre>
  
  <p>the server runs correctly</p>
  
  <p>what i'm trying to do, is to have an init.d script to run it. I copied the /etc/init.d/mysqld script and changed the following line:</p>
  
  <pre><code>exec="/usr/bin/mysqld_safe"
  </code></pre>
  
  <p>to:</p>
  
  <pre><code>exec="/usr/bin/mysqld_safe --defaults-file=/etc/my-dev.cnf"
  </code></pre>
  
  <p>but it keeps failing on:</p>
  
  <pre><code>[ -x $exec ] || exit 5
  </code></pre>
  
  <p>with:</p>
  
  <blockquote>
    <p>/etc/init.d/mysql-dev: line 63: [: '/usr/bin/mysqld_safe': binary operator expected</p>
  </blockquote>
  
  <p>how can i make it work so it will use the defaults i set in /etc/my-dev.cnf?</p>
  
  <p>thanks!</p>