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:02:45 +0100
commit715e09ece039af851b96bcf1861c4fff6169d499 (patch)
tree9abe9ea33beb1e0e251c079372c385fd249f0a62 /src/util/util.h
parente02ec7366b7ab4c1eae82fdaca8bbe136bde36c0 (diff)
downloadsssd-715e09ece039af851b96bcf1861c4fff6169d499.tar.gz
sssd-715e09ece039af851b96bcf1861c4fff6169d499.tar.xz
sssd-715e09ece039af851b96bcf1861c4fff6169d499.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 61e1b1394..de9e6b89a 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);