summaryrefslogtreecommitdiffstats
path: root/src/util/util.h
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-10-18 10:16:06 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-11-06 12:04:47 +0100
commitd80485d2d23bec4294275f097aef3b30a551827c (patch)
treeddeb483a00b24ee7bc7015286d6a19e6f78a0c67 /src/util/util.h
parent6ec69c22a7358313cbe6aa6a90318c5a4e451af1 (diff)
downloadsssd-d80485d2d23bec4294275f097aef3b30a551827c.tar.gz
sssd-d80485d2d23bec4294275f097aef3b30a551827c.tar.xz
sssd-d80485d2d23bec4294275f097aef3b30a551827c.zip
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.
Diffstat (limited to 'src/util/util.h')
-rw-r--r--src/util/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/util.h b/src/util/util.h
index e0f153f26..e50b4f54b 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -359,6 +359,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);