diff options
author | Ryan Egesdahl <ryan.egesdahl@mongodb.com> | 2020-11-23 13:19:47 -0800 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-12-09 03:49:05 +0000 |
commit | 58e82dba8e734c5dd06e23ae0da8cb29d5fc45b9 (patch) | |
tree | 4381a43a8b7e47e07da6bccd441f3d6c4985d217 | |
parent | 23ffc06d3ddf7c80ebe73a544ca09218225a8627 (diff) | |
download | mongo-58e82dba8e734c5dd06e23ae0da8cb29d5fc45b9.tar.gz |
SERVER-52806 Don't assume systemd on all Debian systems
(cherry picked from commit 0e69ddaa39b360d4083a55041b2f792c1cd61ec5)
(cherry picked from commit c18a49d65c2488745694e17ed5d93e4601ce1174)
(cherry picked from commit f3e9474a1482f4de4454480150ec77139c6e626f)
(cherry picked from commit b11f0546ede0a6894d23e9b5435d35be9426af9e)
-rw-r--r-- | debian/mongodb-enterprise-server.postinst | 4 | ||||
-rw-r--r-- | debian/mongodb-enterprise-unstable-server.postinst | 4 | ||||
-rw-r--r-- | debian/mongodb-org-server.postinst | 4 | ||||
-rw-r--r-- | debian/mongodb-org-unstable-server.postinst | 4 |
4 files changed, 12 insertions, 4 deletions
diff --git a/debian/mongodb-enterprise-server.postinst b/debian/mongodb-enterprise-server.postinst index 40f5976c044..a09e41f8edf 100644 --- a/debian/mongodb-enterprise-server.postinst +++ b/debian/mongodb-enterprise-server.postinst @@ -40,7 +40,9 @@ case "$1" in fi # Check for changes to the service file - systemctl daemon-reload + if $(command systemctl --help >/dev/null); then + systemctl daemon-reload + fi ;; abort-upgrade|abort-remove|abort-deconfigure) diff --git a/debian/mongodb-enterprise-unstable-server.postinst b/debian/mongodb-enterprise-unstable-server.postinst index 40f5976c044..a09e41f8edf 100644 --- a/debian/mongodb-enterprise-unstable-server.postinst +++ b/debian/mongodb-enterprise-unstable-server.postinst @@ -40,7 +40,9 @@ case "$1" in fi # Check for changes to the service file - systemctl daemon-reload + if $(command systemctl --help >/dev/null); then + systemctl daemon-reload + fi ;; abort-upgrade|abort-remove|abort-deconfigure) diff --git a/debian/mongodb-org-server.postinst b/debian/mongodb-org-server.postinst index 40f5976c044..a09e41f8edf 100644 --- a/debian/mongodb-org-server.postinst +++ b/debian/mongodb-org-server.postinst @@ -40,7 +40,9 @@ case "$1" in fi # Check for changes to the service file - systemctl daemon-reload + if $(command systemctl --help >/dev/null); then + systemctl daemon-reload + fi ;; abort-upgrade|abort-remove|abort-deconfigure) diff --git a/debian/mongodb-org-unstable-server.postinst b/debian/mongodb-org-unstable-server.postinst index 40f5976c044..a09e41f8edf 100644 --- a/debian/mongodb-org-unstable-server.postinst +++ b/debian/mongodb-org-unstable-server.postinst @@ -40,7 +40,9 @@ case "$1" in fi # Check for changes to the service file - systemctl daemon-reload + if $(command systemctl --help >/dev/null); then + systemctl daemon-reload + fi ;; abort-upgrade|abort-remove|abort-deconfigure) |