[Service]
#Type=forking
-ExecStart=/usr/bin/oma-ds-agent
+ExecStart=/usr/bin/oma-ds-agent 'booting'
[Install]
WantedBy=graphical.target
\ No newline at end of file
_INNER_FUNC_EXIT;
}
-int main()
+int main(int argc, char *argv[])
{
_EXTERN_FUNC_ENTER;
+ if( argc == 2 ) {
+ if(strncmp(argv[1], "booting", strlen("booting")) == 0) {
+ FILE * pFile_ds_enabled = NULL;
+ pFile_ds_enabled = fopen("/opt/usr/data/oma-ds/.oma-ds-agent-enabled", "r");
+ if(pFile_ds_enabled == NULL) {
+ exit(0);
+ }
+
+ if(pFile_ds_enabled != NULL) {
+ fclose(pFile_ds_enabled);
+ pFile_ds_enabled = NULL;
+ }
+ }
+ }
+
struct sigaction sig_act;
sync_agent_event_error_e error = SYNC_AGENT_EVENT_SUCCESS;