add restart-daemon logic
authorYoungjae Shin <yj99.shin@samsung.com>
Wed, 7 Aug 2019 01:47:25 +0000 (10:47 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Wed, 18 Mar 2020 08:53:50 +0000 (17:53 +0900)
packaging/modes.spec

index 9633ac8..2787ab2 100644 (file)
@@ -106,7 +106,10 @@ xmllint --noout --schema schema/tizen_mode.xsd example/mode/tizen_*_mode.xml
 xmllint --noout --schema schema/tizen_action_rule.xsd example/rule/tizen_*_rule.xml
 bash ./unittest/modes-gtest-run.sh ./example ./unittest
 
-%post -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+systemctl daemon-reload
+systemctl restart %{name}.service
 
 %posttrans unittests
 %{modes_test_dir}/modes-gtest-run.sh %{modes_data_dir} %{modes_test_dir}