summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathew Robinson <mathew@chasinglogic.io>2020-02-27 08:57:24 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-10-15 15:44:00 +0000
commit08e22cf1dbc7f28db4ff0711b2feb166d776c2d8 (patch)
tree6a6918822a33aec54f0215005c45b0f1b4bc05fd
parent64095239f41e9f3841d8be9088347db56d35c891 (diff)
downloadmongo-08e22cf1dbc7f28db4ff0711b2feb166d776c2d8.tar.gz
SERVER-46342 Reload systemd service file on install for deb platforms
(cherry picked from commit 0690089e24d1ae398b3cafc348a0b9c9f5f24527)
-rw-r--r--debian/mongodb-enterprise-server.postinst3
-rw-r--r--debian/mongodb-enterprise-unstable-server.postinst3
-rw-r--r--debian/mongodb-org-server.postinst3
-rw-r--r--debian/mongodb-org-unstable-server.postinst3
4 files changed, 12 insertions, 0 deletions
diff --git a/debian/mongodb-enterprise-server.postinst b/debian/mongodb-enterprise-server.postinst
index 52761cd3e3f..40f5976c044 100644
--- a/debian/mongodb-enterprise-server.postinst
+++ b/debian/mongodb-enterprise-server.postinst
@@ -38,6 +38,9 @@ case "$1" in
mkdir -p /var/log/mongodb
chown mongodb:mongodb /var/log/mongodb
fi
+
+ # Check for changes to the service file
+ systemctl daemon-reload
;;
abort-upgrade|abort-remove|abort-deconfigure)
diff --git a/debian/mongodb-enterprise-unstable-server.postinst b/debian/mongodb-enterprise-unstable-server.postinst
index 52761cd3e3f..40f5976c044 100644
--- a/debian/mongodb-enterprise-unstable-server.postinst
+++ b/debian/mongodb-enterprise-unstable-server.postinst
@@ -38,6 +38,9 @@ case "$1" in
mkdir -p /var/log/mongodb
chown mongodb:mongodb /var/log/mongodb
fi
+
+ # Check for changes to the service file
+ systemctl daemon-reload
;;
abort-upgrade|abort-remove|abort-deconfigure)
diff --git a/debian/mongodb-org-server.postinst b/debian/mongodb-org-server.postinst
index 52761cd3e3f..40f5976c044 100644
--- a/debian/mongodb-org-server.postinst
+++ b/debian/mongodb-org-server.postinst
@@ -38,6 +38,9 @@ case "$1" in
mkdir -p /var/log/mongodb
chown mongodb:mongodb /var/log/mongodb
fi
+
+ # Check for changes to the service file
+ systemctl daemon-reload
;;
abort-upgrade|abort-remove|abort-deconfigure)
diff --git a/debian/mongodb-org-unstable-server.postinst b/debian/mongodb-org-unstable-server.postinst
index 52761cd3e3f..40f5976c044 100644
--- a/debian/mongodb-org-unstable-server.postinst
+++ b/debian/mongodb-org-unstable-server.postinst
@@ -38,6 +38,9 @@ case "$1" in
mkdir -p /var/log/mongodb
chown mongodb:mongodb /var/log/mongodb
fi
+
+ # Check for changes to the service file
+ systemctl daemon-reload
;;
abort-upgrade|abort-remove|abort-deconfigure)