title: How to execute 'service mongod start' using additional parameters in CentOS?
body: <p>I unable to start MonogoDB service after adding users into admin db as well as my db.</p>
  
  <p>I setup MonogoDB and started service using following command i.e.</p>
  
  <p><code>service mongod start</code></p>
  
  <p>Using command prompt, I added few users like dbOwner, clusterAdmin, readWrite, read roles base users. Along with that I also changed configuration from /etc/mongod.conf. in that file, I changed port number, IP addresses, dbPath, and security.authorization: enabled.</p>
  
  <p>Then I restarted mongod service using following command.</p>
  
  <p><code>service mongod restart</code></p>
  
  <p>After ran this command, mongod service stopped successfully, but failed to start with only 'FAILED' message.</p>
  
  <p>I tried execute following command i.e.</p>
  
  <p><code>mongod --port 27123 --dbpath /path/to/db --auth</code></p>
  
  <p>It is working.</p>
  
  <p>Question: How to execute 'service mongod start' using additional parameters in CentOS?</p>
  
  <p>MonogoDB: 3.4
  OS: CentOS 7</p>