title: Mongodb service fails to start on Ubuntu 16.04
body: <p>When I attempt to start the mongodb service using the command <code>sudo service mongod start</code>, it doesn't work. Upon closer inspection with 'sudo service mongod status` the following is found:</p>
  
  <pre><code>● mongod.service - High-performance, schema-free document-oriented database
     Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Mon 2017-09-18 21:00:29 CEST; 7s ago
       Docs: https://docs.mongodb.org/manual
    Process: 21352 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=1/FAIL
   Main PID: 21352 (code=exited, status=1/FAILURE)
  
  Sep 18 21:00:29 zeus systemd[1]: Started High-performance, schema-free document-oriented databas
  Sep 18 21:00:29 zeus systemd[1]: mongod.service: Main process exited, code=exited, status=1/FAIL
  Sep 18 21:00:29 zeus systemd[1]: mongod.service: Unit entered failed state.
  Sep 18 21:00:29 zeus systemd[1]: mongod.service: Failed with result 'exit-code'.
  </code></pre>
  
  <p>The configuration file has been changed to the following: </p>
  
  <pre><code># Where and how to store data.
  storage:
    dbPath: /tank/mongo/mongodb
    journal:
      enabled: true
  
  # where to write logging data.
  systemLog:
    destination: file
    logAppend: true
    path: /tank/mongo/log/mongodb/mongod.log
  
  # network interfaces
  net:
    port: 27017
    bindIp: 127.0.0.1
  </code></pre>
  
  <p>The mongodb user been given access to the <code>\tank\mongo</code>directory using the command: <code>sudo chown -R mongodb:users /tank/mongo</code>.</p>