From 651415bd617af87ee0addfc15d6985b6946600ed Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 25 Apr 2016 11:34:35 -0400 Subject: quagga: Fixup startup to allow consistency between sysV and systemd We want the ability to start up quagga in a varied set of environments. This needs to be done in SysV and systemd startups. As such refactor the code to allow us to allow end users to easily switch between the two sysV: edit the /etc/quagga/daemons file service quagga [start|stop|reload|restart] Systemd: edit the /etc/quagga/daemons file systemctl [start|stop|reload|restart] quagga Ticket: CM-10634 Signed-off-by: Donald Sharp Reviewed-by: Daniel Walton --- lib/systemd.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/systemd.h') diff --git a/lib/systemd.h b/lib/systemd.h index aef9c8ec82..685f3d9a77 100644 --- a/lib/systemd.h +++ b/lib/systemd.h @@ -30,5 +30,11 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA */ void systemd_send_information (const char *info); void systemd_send_stopping (void); -void systemd_send_started (struct thread_master *); + +/* + * 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, int the_process); -- cgit v1.2.3