In asan environment, it uses more memory for asan check and
MemoryMax=50M is not enough. To avoid oom-kill of resourced in
asan envrionment, change MemoryMax in asan envrionment
with different asan conf file in resourced.service.d directory.
Change-Id: Ic27a5451688963666be8a258cbc9e12c0c415dc3
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
mkdir -p %{buildroot}/%{TZ_SYS_GLOBALUSER_DB}
popd
+%if "%{asan}" == "1"
+mkdir -p %{buildroot}%{_unitdir}/resourced.service.d
+install -m 644 src/resourced/resourced.asan.conf %{buildroot}%{_unitdir}/resourced.service.d
+%endif
+
%if %{?watchdog_module} == ON
%post watchdog-handler
chsmack %{_bindir}/resourced-watchdog-handler -a "System::Tools"
%{confdir}/optimizer.conf
%{confdir}/process.conf
%{confdir}/monitor.conf
+%if "%{asan}" == "1"
+%{_unitdir}/resourced.service.d/resourced.asan.conf
+%endif
%files config-tv
%manifest resourced.manifest
--- /dev/null
+[Service]
+MemoryMax=64M