pacemaker  2.0.2-debe490
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
services_linux.c File Reference
#include <crm_internal.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <errno.h>
#include <unistd.h>
#include <dirent.h>
#include <grp.h>
#include <string.h>
#include <sys/time.h>
#include <sys/resource.h>
#include "crm/crm.h"
#include "crm/common/mainloop.h"
#include "crm/services.h"
#include "services_private.h"
Include dependency graph for services_linux.c:

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 
#define sigchld_cleanup()
 

Functions

gboolean recurring_action_timer (gpointer data)
 
gboolean operation_finalize (svc_action_t *op)
 
gboolean services_os_action_execute (svc_action_t *op)
 
GList * services_os_get_directory_list (const char *root, gboolean files, gboolean executable)
 
GList * resources_os_list_ocf_providers (void)
 
GList * resources_os_list_ocf_agents (const char *provider)
 
gboolean services__ocf_agent_exists (const char *provider, const char *agent)
 

Macro Definition Documentation

#define _GNU_SOURCE

Definition at line 11 of file services_linux.c.

#define sigchld_cleanup ( )
Value:
do { \
if (sigaction(SIGCHLD, &old_sa, NULL) < 0) { \
crm_perror(LOG_ERR, "sigaction() failed to remove sigchld handler"); \
} \
close(sigchld_pipe[0]); \
close(sigchld_pipe[1]); \
sigchld_pipe[0] = sigchld_pipe[1] = -1; \
} while(0)
#define crm_perror(level, fmt, args...)
Log a system error message.
Definition: logging.h:218

Function Documentation

gboolean operation_finalize ( svc_action_t op)

Definition at line 279 of file services_linux.c.

gboolean recurring_action_timer ( gpointer  data)

Definition at line 260 of file services_linux.c.

GList* resources_os_list_ocf_agents ( const char *  provider)

Definition at line 1013 of file services_linux.c.

GList* resources_os_list_ocf_providers ( void  )

Definition at line 1007 of file services_linux.c.

gboolean services__ocf_agent_exists ( const char *  provider,
const char *  agent 
)

Definition at line 1040 of file services_linux.c.

gboolean services_os_action_execute ( svc_action_t op)

Definition at line 695 of file services_linux.c.

GList* services_os_get_directory_list ( const char *  root,
gboolean  files,
gboolean  executable 
)

Definition at line 952 of file services_linux.c.