]> git.pld-linux.org Git - packages/mongodb.git/commitdiff
Restart service in the upgrade trigger too
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Thu, 16 Aug 2012 07:09:41 +0000 (09:09 +0200)
committerJacek Konieczny <jajcus@jajcus.net>
Thu, 16 Aug 2012 07:09:41 +0000 (09:09 +0200)
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

index e5bb6af36cc30ee8295f153fe9aa642c65360c1a..fde82890e12529285f747790bc4b3a7a33ce6650 100644 (file)
@@ -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
This page took 0.038123 seconds and 4 git commands to generate.