#define ALARMMGR_LOG_BUFFER_STRING_SIZE 200
#define ALARMMGR_LOG_TAG_SIZE 20
#define ALARMMGR_LOG_MESSAGE_SIZE 120
-#define ALARMMGR_LOG_FILE_PATH "/var/log/alarmmgr.log"
+#define ALARMMGR_LOG_FILE_PATH "/run/alarmmgr_log/alarmmgr.log"
static int log_index = 0;
static int log_fd = 0;
#endif
ALARM_MGR_EXCEPTION_PRINT("Alarm IRQs is not supported.");
ALARM_MGR_EXCEPTION_PRINT("RTC_WKALM_SET disabled ioctl is failed. errno = %s", strerror_r(errno, buf, sizeof(buf)));
+#ifdef _APPFW_FEATURE_ALARM_MANAGER_MODULE_LOG
+ __save_module_log("FAIL: SET RTC", log_message);
+#endif
return;
}
ALARM_MGR_LOG_PRINT("[alarm-server]RTC_WKALM_SET disabled ioctl is successfully done.");
int index = 0;
for (gs_iter = alarm_context.alarms; gs_iter != NULL; gs_iter = g_slist_next(gs_iter)) {
entry = gs_iter->data;
- if (entry->uid != uid)
+ if (uid >= REGULAR_UID_MIN && entry->uid != uid)
continue;
++index;
SECURE_LOGD("#%d alarm id[%d] app_name[%s] duetime[%d]",
ALARMMGR_DUMP=$1/alarmmgr
mkdir -p $ALARMMGR_DUMP
-cp -f /var/log/alarmmgr.log $ALARMMGR_DUMP
+cp -f /run/alarmmgr_log/alarmmgr.log $ALARMMGR_DUMP
alarmmgr_get_all_info
mv -f /tmp/alarmmgr_* $ALARMMGR_DUMP
+++ /dev/null
-d /run/alarm_agent 0777 root users -
--- /dev/null
+d /run/alarm_agent 0777 root users -
+d /run/alarmmgr_log 0775 app_fw app_fw -
Source1: alarm-server.service
Source2: alarm-session-agent.service
Source3: alarm-session-agent.socket
-Source4: alarm-agent.conf
+Source4: alarm-manager.conf
Source5: 99-rtc.rules
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
ln -s ../alarm-server.service %{buildroot}%{_unitdir}/multi-user.target.wants/alarm-server.service
ln -sf ../alarm_session_agent.socket %{buildroot}%{_unitdir_user}/sockets.target.wants/alarm-session-agent.socket
mkdir -p %{buildroot}%{_tmpfilesdir}
-install -m 0644 %SOURCE4 %{buildroot}%{_tmpfilesdir}/alarm-agent.conf
+install -m 0644 %SOURCE4 %{buildroot}%{_tmpfilesdir}/alarm-manager.conf
%if 0%{?appfw_feature_wakeup_using_rtc}
mkdir -p %{buildroot}%{_libdir}/udev/rules.d
install -m 0644 %SOURCE5 %{buildroot}%{_libdir}/udev/rules.d
%attr(0644,root,root) %{_datadir}/dbus-1/system-services/org.tizen.alarm.manager.service
%license LICENSE
%config %{_sysconfdir}/dbus-1/system.d/alarm-service.conf
-%{_tmpfilesdir}/alarm-agent.conf
+%{_tmpfilesdir}/alarm-manager.conf
%if 0%{?appfw_feature_wakeup_using_rtc}
%{_libdir}/udev/rules.d/99-rtc.rules
%endif