From 715e09ece039af851b96bcf1861c4fff6169d499 Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Thu, 18 Oct 2012 10:16:06 +0200 Subject: exit original process after sssd is initialized https://fedorahosted.org/sssd/ticket/1357 Neither systemd or our init script use pid file as a notification that sssd is finished initializing. They will continue starting up next service right after the original (not daemonized) sssd process is terminated. If any of the responders fail to start, we will never terminate the original process via signal and "service sssd start" will hang. Thus we take this as an error and terminate the daemon with a non-zero value. This will also terminate the original process and init script or systemd will print failure. --- src/util/util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/util/util.h') diff --git a/src/util/util.h b/src/util/util.h index 61e1b139..de9e6b89 100644 --- a/src/util/util.h +++ b/src/util/util.h @@ -364,6 +364,7 @@ void sss_log(int priority, const char *format, ...); struct main_context { struct tevent_context *event_ctx; struct confdb_ctx *confdb_ctx; + pid_t parent_pid; }; int die_if_parent_died(void); -- cgit