SERVER-71380 Use systemctl try-restart during postun

This commit is contained in:
Ryan Egesdahl
2022-12-06 18:51:31 +00:00
committed by Evergreen Agent
parent b6cb6b94c5
commit 6a8d2a5eb4
4 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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