title: Linux CentOS 7 autofs does not mount network share after reboot
body: <p>Problem:
  I have CentOS 7 Linux VM with cifs installed. I added a mount point using autofs where the whole idea was to automatically mount a network share every time VM boots. However, when I run this command:</p>
  
  <pre><code>    ls /mnt/vmshare/trinity
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>    ls: cannot access /mnt/vmshare/trinity: No such file or directory
  </code></pre>
  
  <p>Workaround:
  What I'm having to do is run this command after each reboot</p>
  
  <pre><code>    /sbin/service autofs start
  </code></pre>
  
  <p>Then I can see the files in trinity. </p>
  
  <p>Maybe autofs does not even start by default on reboot. How to make sure autofs starts on reboot? Or in general, how to solve my problem above?</p>
  
  <p>Thanks so much!</p>