]>
git.proxmox.com Git - mirror_frr.git/blob - lib/systemd.h
2 * Copyright (C) 2016 Cumulus Networks, Inc.
5 * This file is part of Quagga.
7 * Quagga is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2, or (at your option) any
12 * Quagga is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; see the file COPYING; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 /* fd 1/2 connected to journald? */
27 extern bool sd_stdout_is_journal
;
28 extern bool sd_stderr_is_journal
;
31 * Wrapper functions to systemd calls.
33 * Design point is that if systemd is not being used on this system
34 * then these functions becomes a no-op.
36 void systemd_send_stopping(void);
39 * master - The struct thread_master * to use to schedule ourself
40 * the_process - Should we send watchdog if we are not the requested
43 void systemd_send_started(struct thread_master
*master
);
46 * status - A status string to send to systemd
48 void systemd_send_status(const char *status
);
51 * grab startup state from env vars
53 void systemd_init_env(void);