pacemaker 2.1.5-a3f44794f94
Scalable High-Availability cluster resource manager
systemd.h
Go to the documentation of this file.
1/*
2 * Copyright 2012-2021 the Pacemaker project contributors
3 *
4 * The version control history for this file may have further details.
5 *
6 * This source code is licensed under the GNU Lesser General Public License
7 * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8 */
9
10#ifndef SYSTEMD__H
11# define SYSTEMD__H
12
13# include <glib.h>
14# include "crm/services.h"
15
16G_GNUC_INTERNAL GList *systemd_unit_listall(void);
17
18G_GNUC_INTERNAL
20
21G_GNUC_INTERNAL
22enum ocf_exitcode services__systemd2ocf(int exit_status);
23
24G_GNUC_INTERNAL
26
27G_GNUC_INTERNAL gboolean systemd_unit_exists(const gchar * name);
28G_GNUC_INTERNAL void systemd_cleanup(void);
29
30#endif /* SYSTEMD__H */
const char * name
Definition: cib.c:24
ocf_exitcode
Exit status codes for resource agents.
Definition: results.h:163
Services API.
Object for executing external actions.
Definition: services.h:112
G_GNUC_INTERNAL GList * systemd_unit_listall(void)
Definition: systemd.c:537
G_GNUC_INTERNAL enum ocf_exitcode services__systemd2ocf(int exit_status)
Definition: systemd.c:57
G_GNUC_INTERNAL int services__execute_systemd(svc_action_t *op)
Definition: systemd.c:1055
G_GNUC_INTERNAL int services__systemd_prepare(svc_action_t *op)
Definition: systemd.c:39
G_GNUC_INTERNAL void systemd_cleanup(void)
Definition: systemd.c:171
G_GNUC_INTERNAL gboolean systemd_unit_exists(const gchar *name)