From: Youngjae Shin Date: Wed, 7 Aug 2019 01:47:25 +0000 (+0900) Subject: add restart-daemon logic X-Git-Tag: submit/tizen/20200319.043412~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0283f27e1759cc427fdadb6b59364f06465b9d1;p=platform%2Fcore%2Fsystem%2Fmodes.git add restart-daemon logic --- diff --git a/packaging/modes.spec b/packaging/modes.spec index 9633ac8..2787ab2 100644 --- a/packaging/modes.spec +++ b/packaging/modes.spec @@ -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}