title: Mysql Galera Autostart from boot --wsrep-new-cluster
body: <p>To recover from a blackout I need to start the Galera cluster when the system boots and I can only do this with the following:</p>
  
  <pre><code>service mysql start --wsrep-new-cluster
  </code></pre>
  
  <p>"service mysql start" will get launched on boot but will fail because it is the only one in the cluster. How do I get the cluster to start from boot and not fail if it is the only one there?</p>
  
  <p>EDIT</p>
  
  <p>Looks like I have to leave gcomm:// blank for it to start but it is not the best solution as if another server came online first then it would fail.</p>
  
  <pre><code>#galera settings
  wsrep_provider=/usr/lib/galera/libgalera_smm.so
  wsrep_cluster_name="my_wsrep_cluster"
  wsrep_cluster_address="gcomm://"
  wsrep_sst_method=rsync
  wsrep_provider_options="pc.bootstrap=true"
  </code></pre>