-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Packaging
-
Environment:Centos 7
-
ALL
-
I have the following systemD script for my software:
[Unit] Description=LynxChan After=mongod.service Wants=mongod.service [Service] ExecStart=/usr/bin/lynxchan User=node StandardOutput=syslog Restart=on-abort [Install] WantedBy=multi-user.target
See "After=mongod.service". Because of that, my software expects mongo to be ready to take connections when it is booted by this init script.
However, for 3.4, mongo is not ready yet to take connections when my software runs.
I just tested with 3.2 and everything works as expected, my service is always able to connect to mongo when the system boots.
- duplicates
-
SERVER-31225 The mongod process forks before listening for connections
- Closed
- related to
-
SERVER-16581 Init script should return only after mongod port is open
- Closed
-
SERVER-28525 SystemD services depending on mongod will be started before mongo is ready to take connections
- Closed