Security-server was not restarded after update.
authorBartlomiej Grzelewski <b.grzelewski@samsung.com>
Thu, 17 Oct 2013 15:14:53 +0000 (17:14 +0200)
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>
Thu, 6 Feb 2014 16:13:22 +0000 (17:13 +0100)
[Issue#]    N/A
[Bug]       New sockets were not activated after update.
[Cause]     N/A
[Problem]   Lots of tests fails after security server update.

[Verification] Build, run tests.

Change-Id: I225bac131d0f2fa24d23051528189672346793f2

packaging/security-server.spec

index a954028..0b17806 100644 (file)
@@ -94,17 +94,27 @@ rm -rf %{buildroot}
 
 %post
 systemctl daemon-reload
-if [ "$1" = 1 ]; then
+if [ $1 = 1 ]; then
+    # installation
+    systemctl start security-server.service
+fi
+
+if [ $1 = 2 ]; then
+    # update
     systemctl restart security-server.service
 fi
 
 %preun
-if [ "$1" = 0 ]; then
+if [ $1 = 0 ]; then
+    # unistall
     systemctl stop security-server.service
 fi
 
 %postun
-systemctl daemon-reload
+if [ $1 = 0 ]; then
+    # unistall
+    systemctl daemon-reload
+fi
 
 %post -n libsecurity-server-client -p /sbin/ldconfig