]>
git.proxmox.com Git - mirror_frr.git/blob - lib/systemd.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2016 Cumulus Networks, Inc.
11 /* fd 1/2 connected to journald? */
12 extern bool sd_stdout_is_journal
;
13 extern bool sd_stderr_is_journal
;
16 * Wrapper functions to systemd calls.
18 * Design point is that if systemd is not being used on this system
19 * then these functions becomes a no-op.
21 void systemd_send_stopping(void);
24 * master - The struct event_loop * to use to schedule ourself
25 * the_process - Should we send watchdog if we are not the requested
28 void systemd_send_started(struct event_loop
*master
);
31 * status - A status string to send to systemd
33 void systemd_send_status(const char *status
);
36 * grab startup state from env vars
38 void systemd_init_env(void);