mongodb - Need to launch mongod using launchctl -
i have installed mongodb using manual option. 
when fire mongod take parameters somewhere else specially dbpath. 
i want have own dbpath without specifying --dbpath each time.
so found option provide mongod.conf file , call mongod --config option still need pass path of .conf file.
my ultimate goal launch mongod service , read config file path configured. tried launchagent , launchdaemon no luck. thought if can configure launchagent or daemon  provide path mongod of bin directory of mongodb folder , provide --config , path .conf file argument , need launch mongod using launchctl name mongod , start mongod --config <.conf file path>. 
but not able so. read 15-16 posts on launchagent , daemon did not solution problem. tried making mongod.plist file @ various places /library/launchdaemon, /library/launchagent , ~/library/launchdaemon error "path had bad ownership/permissions". tried chown , chgrp no luck. 
i hope got point. need complete solution achieve goal.
do use linux or windows? default location of mongodb.conf in linux:
/etc/mongodb.conf you can edit parameters, , start service using:
sudo service mongodb restart if using windows, depends on version of mongodb using, check in:
c:\program files\mongodb\server\3.4\... for same file.
Comments
Post a Comment