Logo Search packages:      
Sourcecode: ladish version File versions  Download package

void ladish_app_supervisor_autorun ( ladish_app_supervisor_handle  supervisor_handle )

Start all apps that were added with autorun enabled

Parameters:
[in]supervisor_handlesupervisor object handle

Definition at line 745 of file app_supervisor.c.

{
  struct list_head * node_ptr;
  struct ladish_app * app_ptr;

  list_for_each(node_ptr, &supervisor_ptr->applist)
  {
    app_ptr = list_entry(node_ptr, struct ladish_app, siblings);

    if (!app_ptr->autorun)
    {
      continue;
    }

    app_ptr->autorun = false;

    log_info("autorun('%s', %s, '%s') called", app_ptr->name, app_ptr->terminal ? "terminal" : "shell", app_ptr->commandline);

    if (!ladish_app_supervisor_start_app((ladish_app_supervisor_handle)supervisor_ptr, (ladish_app_handle)app_ptr))
    {
      log_error("Execution of '%s' failed",  app_ptr->commandline);
      return;
    }
  }
}

Generated by  Doxygen 1.6.0   Back to index