1

I'm installing MongoDB Community Edition on debian using the instructions here. It says:

The mongodb-org-server package provides an initialization script that starts mongod with the /etc/mongod.conf configuration file.

I find that it installs a systemd script instead of a SysVinit / init.d script. Running dpkg -L confirms this:

$ dpkg -L mongodb-org-server
[...]
/lib/systemd
/lib/systemd/system
/lib/systemd/system/mongod.service

But I found that MongoDB does have an init.d script, in their github here. Why isn't it installed? Is there some special step I need to follow?

  • Well, at least, the systemd service can be enabled: systemctl enable mongod.service && systemctl start mongod.service. Just in case that someone found this question, looking for a normal way of daemonizing mongod process. – ivanleoncz Mar 12 '18 at 16:56
3

Because on 2016-02-09 Sam Kleinman of MongoDB decided that it will be this way. Debian 7 users get only van Smoorenburg rc scripts. Debian 8 users get only systemd unit files. No-one gets both. It was, as you can see, questioned at the time. But nothing has been done about it since.

This really isn't right for Debian. In contrast, the packages made by the Debian people are made in a different way, and include both.

Sam Kleinman of MongoDB would appear to be the person to talk to.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.