boost muse-server for PNP mode at tv profile 07/289607/2
authorYoungHun Kim <yh8004.kim@samsung.com>
Fri, 10 Mar 2023 08:31:04 +0000 (17:31 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Tue, 14 Mar 2023 00:54:26 +0000 (09:54 +0900)
 - update log level

Change-Id: I794beb57e84503287165fc426e24ed7053663f89

packaging/muse-server-vd_product_tv.path
packaging/muse-server-vd_product_tv.service
packaging/mused.spec
server/src/muse_server_system.c

index fdadb48..8f3815a 100644 (file)
@@ -3,5 +3,5 @@ Description=muse server
 DefaultDependencies=no
 
 [Path]
-PathExists=/tmp/tvplus_ready
+PathExists=/tmp/PNP_mode
 
index e8c1e8c..67db416 100644 (file)
@@ -1,6 +1,9 @@
 [Unit]
 Description=muse server of vd product (tv)
 ConditionPathExists=!/run/.standalone
+DefaultDependencies=no
+Requires=tizen-system-env.service
+After=tizen-system-env.service
 
 [Service]
 Type=forking
@@ -19,4 +22,4 @@ Capabilities=cap_dac_override=i
 SecureBits=keep-caps
 
 [Install]
-WantedBy=basic.target
+WantedBy=starter.target
index b7cd5fd..44782cf 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mused
 Summary:    A multimedia daemon
-Version:    0.3.164
+Version:    0.3.165
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
@@ -99,13 +99,15 @@ mkdir -p %{buildroot}%{_sysconfdir}/notstrip
 install -m 0644 %SOURCE6 %{buildroot}%{_sysconfdir}/notstrip/%{name}.notstrip
 %else
 %if ("%{_vd_cfg_product_type}" == "TV") || ("%{_vd_cfg_product_type}" == "LFD") || ("%{_vd_cfg_product_type}" == "HTV") || ("%{_vd_cfg_product_type}" == "AV") || ("%{_vd_cfg_product_type}" == "IWB") || ("%{_vd_cfg_product_type}" == "WALL")
-mkdir -p %{buildroot}%{_unitdir}/basic.target.wants
+mkdir -p %{buildroot}%{_unitdir}/starter.target.wants
 install -m 0644 %SOURCE4 %{buildroot}%{_unitdir}/muse-server.service
-%install_service basic.target.wants muse-server.service
+%install_service starter.target.wants muse-server.service
 
 mkdir -p %{buildroot}%{_sysconfdir}/notstrip
 install -m 0644 %SOURCE6 %{buildroot}%{_sysconfdir}/notstrip/%{name}.notstrip
+mkdir -p %{buildroot}%{_unitdir}/sysinit.target.wants
 install -m 0644 %SOURCE3 %{buildroot}%{_unitdir}/muse-server.path
+%install_service sysinit.target.wants muse-server.path
 %else
 mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
 install -m 0644 %SOURCE1 %{buildroot}%{_unitdir}/muse-server.service
@@ -143,7 +145,8 @@ chsmack -a "System::Shared" /var/log/%{name}
 %{_unitdir}/starter.target.wants/muse-server.service
 %else
 %if ("%{_vd_cfg_product_type}" == "TV") || ("%{_vd_cfg_product_type}" == "LFD") || ("%{_vd_cfg_product_type}" == "HTV") || ("%{_vd_cfg_product_type}" == "AV") || ("%{_vd_cfg_product_type}" == "IWB") || ("%{_vd_cfg_product_type}" == "WALL")
-%{_unitdir}/basic.target.wants/muse-server.service
+%{_unitdir}/starter.target.wants/muse-server.service
+%{_unitdir}/sysinit.target.wants/muse-server.path
 %else
 %{_unitdir}/multi-user.target.wants/muse-server.service
 %{_unitdir}/paths.target.wants/muse-server.path
index 4618efd..bb88252 100644 (file)
@@ -331,7 +331,7 @@ static gboolean _ms_system_cpu_usage_cb(gpointer user_data)
        system->st.idle += i;
 
        if (u + n + s + i == 0) {
-               LOGD("[#%d] cpu usage is 0%%", system->st.counter);
+               LOGW("[#%d] cpu usage is 0%%", system->st.counter);
                return G_SOURCE_REMOVE;
        }
 
@@ -339,7 +339,7 @@ static gboolean _ms_system_cpu_usage_cb(gpointer user_data)
        LOGD("[#%d] cpu usage %d %%", system->st.counter, system->st.usage);
 
        if (system->st.usage < cpu_threshold) {
-               LOGD("[#%d] cpu usage (%d) < cpu_threshold (%d)", system->st.counter, system->st.usage, cpu_threshold);
+               LOGI("[#%d] cpu usage (%d) < cpu_threshold (%d)", system->st.counter, system->st.usage, cpu_threshold);
                return G_SOURCE_REMOVE;
        }