[packages/mongodb] Restart service in the upgrade trigger too
jajcus
jajcus at pld-linux.org
Thu Aug 16 09:10:53 CEST 2012
commit 4f4a6eae680d3156990c89e4acc1f4d35a893392
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Thu Aug 16 09:09:41 2012 +0200
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
More information about the pld-cvs-commit
mailing list