summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Egesdahl <ryan.egesdahl@mongodb.com>2022-12-06 18:51:31 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-12-06 20:13:38 +0000
commit6a8d2a5eb450093cadca0043b7de6925e093c5f5 (patch)
treeb3293b5aea1025163fef7b80d6b44c45180e4a7c
parentb6cb6b94c5221dfe04bc98f3f9dc0c04e2a2cfa8 (diff)
downloadmongo-6a8d2a5eb450093cadca0043b7de6925e093c5f5.tar.gz
SERVER-71380 Use `systemctl try-restart` during `postun`
-rw-r--r--rpm/mongodb-enterprise-unstable.spec2
-rw-r--r--rpm/mongodb-enterprise.spec2
-rw-r--r--rpm/mongodb-org-unstable.spec2
-rw-r--r--rpm/mongodb-org.spec2
4 files changed, 4 insertions, 4 deletions
diff --git a/rpm/mongodb-enterprise-unstable.spec b/rpm/mongodb-enterprise-unstable.spec
index 0835f30a8c3..3c614e04c1e 100644
--- a/rpm/mongodb-enterprise-unstable.spec
+++ b/rpm/mongodb-enterprise-unstable.spec
@@ -299,7 +299,7 @@ fi
%postun -n mongodb-enterprise-unstable-server
if test $1 -ge 1
then
- /usr/bin/systemctl restart mongod >/dev/null 2>&1 || :
+ /usr/bin/systemctl try-restart mongod >/dev/null 2>&1 || :
fi
%files
diff --git a/rpm/mongodb-enterprise.spec b/rpm/mongodb-enterprise.spec
index 98509856b5c..3c16a5363d3 100644
--- a/rpm/mongodb-enterprise.spec
+++ b/rpm/mongodb-enterprise.spec
@@ -304,7 +304,7 @@ fi
%postun -n mongodb-enterprise-server
if test $1 -ge 1
then
- /usr/bin/systemctl restart mongod >/dev/null 2>&1 || :
+ /usr/bin/systemctl try-restart mongod >/dev/null 2>&1 || :
fi
%files
diff --git a/rpm/mongodb-org-unstable.spec b/rpm/mongodb-org-unstable.spec
index 0d5b8cca1df..93c7639e250 100644
--- a/rpm/mongodb-org-unstable.spec
+++ b/rpm/mongodb-org-unstable.spec
@@ -271,7 +271,7 @@ fi
%postun -n mongodb-org-unstable-server
if test $1 -ge 1
then
- /usr/bin/systemctl restart mongod >/dev/null 2>&1 || :
+ /usr/bin/systemctl try-restart mongod >/dev/null 2>&1 || :
fi
%files
diff --git a/rpm/mongodb-org.spec b/rpm/mongodb-org.spec
index 7a19facf9d0..91eb62598f0 100644
--- a/rpm/mongodb-org.spec
+++ b/rpm/mongodb-org.spec
@@ -281,7 +281,7 @@ fi
%postun -n mongodb-org-server
if test $1 -ge 1
then
- /usr/bin/systemctl restart mongod >/dev/null 2>&1 || :
+ /usr/bin/systemctl try-restart mongod >/dev/null 2>&1 || :
fi
%files