Incorrect documentation for modern (systemd) Ubuntu?

18 views
Skip to first unread message

Bruno Bronosky

unread,
Jan 21, 2017, 4:40:42 PM1/21/17
to mongodb-user
I read https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ and subsequently created https://gist.github.com/RichardBronosky/2d04c7c2e9a5bea67cd9760a35415a3f to set up an EC2 server via userdata. I've had to do a lot of tweaking to it because using `/usr/sbin/service` doesn't seem to work right.

Shouldn't the instructions use `/bin/systemctl` for starting, stopping, and most importantly making mongod start on boot (which is oddly missing from that document entirely)?

Just to be clear, what I mean by "doesn't seem to work right" is that I get no results from `service --status-all | grep mongo` but I see mongo running with `systemctl --all | grep mongo`
Message has been deleted

Wan Bachtiar

unread,
Feb 2, 2017, 1:49:00 AM2/2/17
to mongodb-user

I’ve had to do a lot of tweaking to it because using /usr/sbin/service doesn’t seem to work right.

Hi Bruno,

Are you executing the script from a docker container in an EC2 Ubuntu 16.04 server ?

Note that running systemd from docker is debated in design. There’s a few of discussion over this, for example LWN: Systemd vs Docker.

Regards,

Wan.

Reply all
Reply to author
Forward
0 new messages