diff options
author | Ryan Egesdahl <ryan.egesdahl@mongodb.com> | 2021-02-15 18:06:27 -0800 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-18 17:25:32 +0000 |
commit | 8cf3de4ca76037e9bdace59d84f8ee7403f8a03b (patch) | |
tree | 6688162980d52e0b47e6253a38f93c5b234cde6b /debian | |
parent | 5a76da986da7166226cc3da2eed081bc5263bfe6 (diff) | |
download | mongo-8cf3de4ca76037e9bdace59d84f8ee7403f8a03b.tar.gz |
SERVER-54386 Prevent install errors when systemd is not running
Diffstat (limited to 'debian')
-rw-r--r-- | debian/mongodb-enterprise-server.postinst | 5 | ||||
-rw-r--r-- | debian/mongodb-enterprise-unstable-server.postinst | 5 | ||||
-rw-r--r-- | debian/mongodb-org-server.postinst | 5 | ||||
-rw-r--r-- | debian/mongodb-org-unstable-server.postinst | 5 |
4 files changed, 12 insertions, 8 deletions
diff --git a/debian/mongodb-enterprise-server.postinst b/debian/mongodb-enterprise-server.postinst index a09e41f8edf..9a5fdff903b 100644 --- a/debian/mongodb-enterprise-server.postinst +++ b/debian/mongodb-enterprise-server.postinst @@ -39,9 +39,10 @@ case "$1" in chown mongodb:mongodb /var/log/mongodb fi - # Check for changes to the service file + # Check for changes to the service file, but ignore errors when + # systemd is not running. if $(command systemctl --help >/dev/null); then - systemctl daemon-reload + systemctl daemon-reload || true fi ;; diff --git a/debian/mongodb-enterprise-unstable-server.postinst b/debian/mongodb-enterprise-unstable-server.postinst index a09e41f8edf..9a5fdff903b 100644 --- a/debian/mongodb-enterprise-unstable-server.postinst +++ b/debian/mongodb-enterprise-unstable-server.postinst @@ -39,9 +39,10 @@ case "$1" in chown mongodb:mongodb /var/log/mongodb fi - # Check for changes to the service file + # Check for changes to the service file, but ignore errors when + # systemd is not running. if $(command systemctl --help >/dev/null); then - systemctl daemon-reload + systemctl daemon-reload || true fi ;; diff --git a/debian/mongodb-org-server.postinst b/debian/mongodb-org-server.postinst index a09e41f8edf..9a5fdff903b 100644 --- a/debian/mongodb-org-server.postinst +++ b/debian/mongodb-org-server.postinst @@ -39,9 +39,10 @@ case "$1" in chown mongodb:mongodb /var/log/mongodb fi - # Check for changes to the service file + # Check for changes to the service file, but ignore errors when + # systemd is not running. if $(command systemctl --help >/dev/null); then - systemctl daemon-reload + systemctl daemon-reload || true fi ;; diff --git a/debian/mongodb-org-unstable-server.postinst b/debian/mongodb-org-unstable-server.postinst index a09e41f8edf..9a5fdff903b 100644 --- a/debian/mongodb-org-unstable-server.postinst +++ b/debian/mongodb-org-unstable-server.postinst @@ -39,9 +39,10 @@ case "$1" in chown mongodb:mongodb /var/log/mongodb fi - # Check for changes to the service file + # Check for changes to the service file, but ignore errors when + # systemd is not running. if $(command systemctl --help >/dev/null); then - systemctl daemon-reload + systemctl daemon-reload || true fi ;; |