I followed the directions to install MongoDB via apt-get. There was a hiccup with verification, but tracking this down on StackExchange indicated it was a known issue with the signing process, so I re-ran apt-get install mongodb
without the -y
flag. Installation then succeeded, or so it seemed. But when I tried to start the service, this happened:
$ sudo service mongod start
[sudo] password for mark:
Failed to start mongod.service: Unit mongod.service not found.
$ sudo service mongod status
● mongod.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
Sure enough, the file /etc/init.d/mongod
does not exist. The install directions explicitly say this file is provided:
The mongodb-org package includes various init scripts, including the init script /etc/init.d/mongod.
The file does exist in the sources on GitHub. So I can carry on. But I'd like to know why a critical configuration file is missing from a successfully installed package. (Call me a completist.)
My Ubuntu release is 16.10, which is not officially supported. I wouldn't think that could be the cause. Could the release version really be to blame? Or was it a mistake to install the packages unsigned? Or is the package itself broken? Or is something else going on here?