%define exclude_list_file_name resourced_proc_exclude.ini
%define exclude_list_ro_path /etc/%{exclude_list_file_name}
%define exclude_list_rw_path %{TZ_SYS_ETC}/%{exclude_list_file_name}
-%define database_full_path %{TZ_SYS_GLOBALUSER_DB}/.resourced-datausage.db
-
-%define logging_storage_db_full_path %{TZ_SYS_GLOBALUSER_DB}/.resourced-heart-storage.db
%define rd_config_path /etc/resourced
%if %{?heart_module} == ON
mkdir -p %{buildroot}/%{TZ_SYS_GLOBALUSER_DATA}/heart
mkdir -p %{buildroot}/%{TZ_SYS_GLOBALUSER_DB}
- sqlite3 --line %{buildroot}%{logging_storage_db_full_path} 'PRAGMA journal_mode = WAL'
- touch %{buildroot}%{logging_storage_db_full_path}-shm
- touch %{buildroot}%{logging_storage_db_full_path}-wal
%endif
%if %{?cpu_module} == OFF
%if %{?heart_module} == ON
%config %{rd_config_path}/heart.conf
%attr(700, root, root) %{TZ_SYS_ETC}/dump.d/module.d/dump_heart_data.sh
- %attr(644, root, root) %{logging_storage_db_full_path}
- %attr(644, root, root) %{logging_storage_db_full_path}-shm
- %attr(644, root, root) %{logging_storage_db_full_path}-wal
%endif
#mem-stress
%if %{?mem_stress} == ON