pacemaker  2.1.1-52dc28db4
Scalable High-Availability cluster resource manager
Macros | Functions
systemd.c File Reference
#include <crm_internal.h>
#include <crm/crm.h>
#include <crm/services.h>
#include <crm/common/mainloop.h>
#include <sys/stat.h>
#include <gio/gio.h>
#include <services_private.h>
#include <systemd.h>
#include <dbus/dbus.h>
#include <pcmk-dbus.h>
Include dependency graph for systemd.c:

Go to the source code of this file.

Macros

#define BUS_NAME   "org.freedesktop.systemd1"
 
#define BUS_NAME_MANAGER   BUS_NAME ".Manager"
 
#define BUS_NAME_UNIT   BUS_NAME ".Unit"
 
#define BUS_PATH   "/org/freedesktop/systemd1"
 
#define SYSTEMD_OVERRIDE_ROOT   "/run/systemd/system/"
 
#define SYSTEMD_OVERRIDE_TEMPLATE
 

Functions

gboolean systemd_unit_exec_with_unit (svc_action_t *op, const char *unit)
 
void systemd_cleanup (void)
 
GList * systemd_unit_listall (void)
 
gboolean systemd_unit_exists (const char *name)
 
gboolean systemd_unit_exec (svc_action_t *op)
 

Macro Definition Documentation

◆ BUS_NAME

#define BUS_NAME   "org.freedesktop.systemd1"

Definition at line 24 of file systemd.c.

◆ BUS_NAME_MANAGER

#define BUS_NAME_MANAGER   BUS_NAME ".Manager"

Definition at line 25 of file systemd.c.

◆ BUS_NAME_UNIT

#define BUS_NAME_UNIT   BUS_NAME ".Unit"

Definition at line 26 of file systemd.c.

◆ BUS_PATH

#define BUS_PATH   "/org/freedesktop/systemd1"

Definition at line 27 of file systemd.c.

◆ SYSTEMD_OVERRIDE_ROOT

#define SYSTEMD_OVERRIDE_ROOT   "/run/systemd/system/"

Definition at line 598 of file systemd.c.

◆ SYSTEMD_OVERRIDE_TEMPLATE

#define SYSTEMD_OVERRIDE_TEMPLATE
Value:
"[Unit]\n" \
"Description=Cluster Controlled %s\n" \
"Before=pacemaker.service pacemaker_remote.service\n" \
"\n" \
"[Service]\n" \
"Restart=no\n"

Definition at line 609 of file systemd.c.

Function Documentation

◆ systemd_cleanup()

void systemd_cleanup ( void  )

Definition at line 137 of file systemd.c.

◆ systemd_unit_exec()

gboolean systemd_unit_exec ( svc_action_t op)

Definition at line 834 of file systemd.c.

◆ systemd_unit_exec_with_unit()

gboolean systemd_unit_exec_with_unit ( svc_action_t op,
const char *  unit 
)

Definition at line 727 of file systemd.c.

◆ systemd_unit_exists()

gboolean systemd_unit_exists ( const char *  name)

Definition at line 491 of file systemd.c.

◆ systemd_unit_listall()

GList* systemd_unit_listall ( void  )

Definition at line 394 of file systemd.c.