]>
Commit | Line | Data |
---|---|---|
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 |
8 | extern "C" { | |
9 | #endif | |
10 | ||
29bb23de DL |
11 | /* fd 1/2 connected to journald? */ |
12 | extern bool sd_stdout_is_journal; | |
13 | extern 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 | 21 | void 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 | 28 | void systemd_send_started(struct event_loop *master); |
5e244469 | 29 | |
b3ee8bcc DS |
30 | /* |
31 | * status - A status string to send to systemd | |
32 | */ | |
33 | void systemd_send_status(const char *status); | |
34 | ||
247898d5 DL |
35 | /* |
36 | * grab startup state from env vars | |
37 | */ | |
38 | void systemd_init_env(void); | |
39 | ||
5e244469 RW |
40 | #ifdef __cplusplus |
41 | } | |
42 | #endif |