From 4f4a6eae680d3156990c89e4acc1f4d35a893392 Mon Sep 17 00:00:00 2001 From: Jacek Konieczny Date: Thu, 16 Aug 2012 09:09:41 +0200 Subject: [PATCH] Restart service in the upgrade trigger too Otherwise, mongod is restarted only before moving the old configuration, so it will be running with the wrong setup. Now, the only problem is it may be restarted twice. --- mongodb.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/mongodb.spec b/mongodb.spec index e5bb6af..fde8289 100644 --- a/mongodb.spec +++ b/mongodb.spec @@ -203,6 +203,7 @@ if [ -f %{_sysconfdir}/mongod.conf.rpmsave ] ; then cp -f %{_sysconfdir}/mongod/default.conf{,.rpmnew} || : echo "Moving %{_sysconfdir}/mongod.conf to %{_sysconfdir}/mongod/default.conf" mv -f %{_sysconfdir}/mongod.conf.rpmsave %{_sysconfdir}/mongod/default.conf + %service mongod restart fi %files -- 2.44.0