diff options
author | Ryan Egesdahl <ryan.egesdahl@mongodb.com> | 2020-09-10 11:15:26 -0700 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-10-07 23:29:34 +0000 |
commit | ca633f01d864257ff9b75c129421c9d4ecccc937 (patch) | |
tree | 2361276bdaae0249d9e31051eaa5a977678a8eec /debian | |
parent | 7b93770e0835087c023ae3e3f36eeb46d204767f (diff) | |
download | mongo-ca633f01d864257ff9b75c129421c9d4ecccc937.tar.gz |
SERVER-50866 SystemD unit should wait for network-online.target
We were previously waiting for network.target, which does not actually
mean the network interface will be up and have an IP address assigned.
During some reboots, it's possible that mongod would start up before the
network interface was fully online, and this caused startup failures if
mongod was configured to listen on a specific IP address. Now we wait
for network-online.target instead to ensure the IP address is available
when mongod starts.
(cherry picked from commit 3dc3db0d78d4d8851ad50dd52ee51fed84ecc7e0)
Diffstat (limited to 'debian')
-rw-r--r-- | debian/mongod.service | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/mongod.service b/debian/mongod.service index 423d6bf6f48..0e0ec261fb6 100644 --- a/debian/mongod.service +++ b/debian/mongod.service @@ -1,7 +1,8 @@ [Unit] Description=MongoDB Database Server Documentation=https://docs.mongodb.org/manual -After=network.target +After=network-online.target +Wants=network-online.target [Service] User=mongodb |