]> git.proxmox.com Git - mirror_frr.git/blame - lib/systemd.h
Merge pull request #13649 from donaldsharp/unlock_the_node_or_else
[mirror_frr.git] / lib / systemd.h
CommitLineData
acddc0ed 1// SPDX-License-Identifier: GPL-2.0-or-later
ddd82ff6 2/* lib/systemd Code
896014f4
DL
3 * Copyright (C) 2016 Cumulus Networks, Inc.
4 * Donald Sharp
896014f4 5 */
ddd82ff6 6
5e244469
RW
7#ifdef __cplusplus
8extern "C" {
9#endif
10
29bb23de
DL
11/* fd 1/2 connected to journald? */
12extern bool sd_stdout_is_journal;
13extern bool sd_stderr_is_journal;
14
ddd82ff6
DS
15/*
16 * Wrapper functions to systemd calls.
17 *
18 * Design point is that if systemd is not being used on this system
19 * then these functions becomes a no-op.
ddd82ff6 20 */
d62a17ae 21void systemd_send_stopping(void);
651415bd
DS
22
23/*
cd9d0537 24 * master - The struct event_loop * to use to schedule ourself
651415bd
DS
25 * the_process - Should we send watchdog if we are not the requested
26 * process?
27 */
cd9d0537 28void systemd_send_started(struct event_loop *master);
5e244469 29
b3ee8bcc
DS
30/*
31 * status - A status string to send to systemd
32 */
33void systemd_send_status(const char *status);
34
247898d5
DL
35/*
36 * grab startup state from env vars
37 */
38void systemd_init_env(void);
39
5e244469
RW
40#ifdef __cplusplus
41}
42#endif