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
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/"
 

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

#define BUS_NAME   "org.freedesktop.systemd1"

Definition at line 22 of file systemd.c.

#define BUS_NAME_MANAGER   BUS_NAME ".Manager"

Definition at line 23 of file systemd.c.

#define BUS_NAME_UNIT   BUS_NAME ".Unit"

Definition at line 24 of file systemd.c.

#define BUS_PATH   "/org/freedesktop/systemd1"

Definition at line 25 of file systemd.c.

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

Definition at line 572 of file systemd.c.

Function Documentation

void systemd_cleanup ( void  )

Definition at line 135 of file systemd.c.

gboolean systemd_unit_exec ( svc_action_t op)

Definition at line 756 of file systemd.c.

gboolean systemd_unit_exec_with_unit ( svc_action_t op,
const char *  unit 
)

Definition at line 603 of file systemd.c.

gboolean systemd_unit_exists ( const char *  name)

Definition at line 465 of file systemd.c.

GList* systemd_unit_listall ( void  )

Definition at line 358 of file systemd.c.