service should only be restarted when post upgrade, not post install 47/247/1 1.0_post submit/trunk/20120808.221124
authorYan Yin <yan.yin@intel.com>
Mon, 6 Aug 2012 02:53:32 +0000 (10:53 +0800)
committerYan Yin <yan.yin@intel.com>
Mon, 6 Aug 2012 02:55:43 +0000 (10:55 +0800)
packaging/aul.changes
packaging/aul.spec

index c7ebb5d..f5af21b 100644 (file)
@@ -1,3 +1,7 @@
+* Mon Aug 06 2012 Yan Yin <yan.yin@intel.com> 2cffaf8
+[ Yan Yin ]
+- service should only be restarted when post upgrade, not post install.
+
 * Mon Jul 23 2012 Brad Peters <brad.t.peters@intel.com> 7730828
 - Updating oom_score setting function to use new systemd interface. 
   Changing child oom_scores from very low (unlikely to be killed) to
index 82b0f70..ea3e0de 100644 (file)
@@ -83,7 +83,7 @@ fi
 %post
 /sbin/ldconfig
 systemctl daemon-reload
-if [ $1 == 1 ]; then
+if [ $1 == 2 ]; then
     systemctl restart launchpad-preload.service
     systemctl restart ac.service
 fi