pacemaker  1.1.18-7fdfbbe
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 <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_lsb_agents (void)
 
GList * resources_os_list_ocf_providers (void)
 
GList * resources_os_list_ocf_agents (const char *provider)
 

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:226

Function Documentation

gboolean operation_finalize ( svc_action_t op)

Definition at line 218 of file services_linux.c.

gboolean recurring_action_timer ( gpointer  data)

Definition at line 199 of file services_linux.c.

GList* resources_os_list_lsb_agents ( void  )

Definition at line 864 of file services_linux.c.

GList* resources_os_list_ocf_agents ( const char *  provider)

Definition at line 876 of file services_linux.c.

GList* resources_os_list_ocf_providers ( void  )

Definition at line 870 of file services_linux.c.

gboolean services_os_action_execute ( svc_action_t op)

Definition at line 610 of file services_linux.c.

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

Definition at line 809 of file services_linux.c.