mirror of
				https://git.proxmox.com/git/mirror_frr
				synced 2025-11-04 09:45:13 +00:00 
			
		
		
		
	Done with a combination of regex'ing and banging my head against a wall. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
		
			
				
	
	
		
			43 lines
		
	
	
		
			900 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			900 B
		
	
	
	
		
			C
		
	
	
	
	
	
// SPDX-License-Identifier: GPL-2.0-or-later
 | 
						|
/* lib/systemd Code
 | 
						|
 * Copyright (C) 2016 Cumulus Networks, Inc.
 | 
						|
 * Donald Sharp
 | 
						|
 */
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
extern "C" {
 | 
						|
#endif
 | 
						|
 | 
						|
/* fd 1/2 connected to journald? */
 | 
						|
extern bool sd_stdout_is_journal;
 | 
						|
extern bool sd_stderr_is_journal;
 | 
						|
 | 
						|
/*
 | 
						|
 * Wrapper functions to systemd calls.
 | 
						|
 *
 | 
						|
 * Design point is that if systemd is not being used on this system
 | 
						|
 * then these functions becomes a no-op.
 | 
						|
 */
 | 
						|
void systemd_send_stopping(void);
 | 
						|
 | 
						|
/*
 | 
						|
 *  master - The struct thread_master * to use to schedule ourself
 | 
						|
 *  the_process - Should we send watchdog if we are not the requested
 | 
						|
 *                process?
 | 
						|
 */
 | 
						|
void systemd_send_started(struct thread_master *master);
 | 
						|
 | 
						|
/*
 | 
						|
 * status - A status string to send to systemd
 | 
						|
 */
 | 
						|
void systemd_send_status(const char *status);
 | 
						|
 | 
						|
/*
 | 
						|
 * grab startup state from env vars
 | 
						|
 */
 | 
						|
void systemd_init_env(void);
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
}
 | 
						|
#endif
 |