pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
systemd.h
Go to the documentation of this file.
1/*
2 * Copyright 2012-2025 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 PCMK__SERVICES_SYSTEMD__H
11#define PCMK__SERVICES_SYSTEMD__H
12
13#include <glib.h>
14#include "crm/services.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20G_GNUC_INTERNAL GList *systemd_unit_listall(void);
21
22G_GNUC_INTERNAL
24
25G_GNUC_INTERNAL
26enum ocf_exitcode services__systemd2ocf(int exit_status);
27
28G_GNUC_INTERNAL
30
31G_GNUC_INTERNAL
32bool systemd_unit_exists(const char *name);
33
34G_GNUC_INTERNAL void systemd_cleanup(void);
35
36#ifdef __cplusplus
37}
38#endif
39
40#endif // PCMK__SERVICES_SYSTEMD__H
const char * name
Definition cib.c:26
ocf_exitcode
Exit status codes for resource agents.
Definition results.h:173
Services API.
Object for executing external actions.
Definition services.h:99
G_GNUC_INTERNAL GList * systemd_unit_listall(void)
Definition systemd.c:612
G_GNUC_INTERNAL enum ocf_exitcode services__systemd2ocf(int exit_status)
Definition systemd.c:65
G_GNUC_INTERNAL int services__execute_systemd(svc_action_t *op)
Definition systemd.c:1386
G_GNUC_INTERNAL int services__systemd_prepare(svc_action_t *op)
Definition systemd.c:47
G_GNUC_INTERNAL bool systemd_unit_exists(const char *name)
Definition systemd.c:709
G_GNUC_INTERNAL void systemd_cleanup(void)
Definition systemd.c:228