I want to start MongoDB (aka mondgod) as a service under FreeBSD. I have the following in rc.conf:
mongod_enable="YES"
mongod_config="/usr/local/etc/mongodb.conf"
mongod_dpath="/var/db/mongod"
But service mongodb stop (and mongod) give me:
mongod does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d), or is not executable
I need the right startup script for /usr/local/etc/rc.d but I'm a MongoDB newbie. I have searched for a script, including on the MongoDB site, without success. I realize MongoDB on FreeBSD is not optimal, and not popular, but runs well enough for a non-production box. My FreeBSD version is 12.0-RELEASE. MongoDB version is v3.0.15