diff options
-rw-r--r-- | debian/mongod.service | 1 | ||||
-rw-r--r-- | rpm/mongod.service | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/debian/mongod.service b/debian/mongod.service index a106a0020ae..6662415d59a 100644 --- a/debian/mongod.service +++ b/debian/mongod.service @@ -1,6 +1,7 @@ [Unit] Description=MongoDB Database Server Documentation=https://docs.mongodb.org/manual +After=network.target [Service] User=mongodb diff --git a/rpm/mongod.service b/rpm/mongod.service index c91272f33de..4386383d4f2 100644 --- a/rpm/mongod.service +++ b/rpm/mongod.service @@ -1,6 +1,7 @@ [Unit] Description=MongoDB Database Server Documentation=https://docs.mongodb.org/manual +After=network.target [Service] User=mongod |