Conversation
|
Continuing discussion started in #134:
Discussion regarding integration of the components was controversal as well suggesting tight integration of sbd into corosync. |
| exit_status = inquisitor(); | ||
| } else { | ||
| sbd_detach(); | ||
| inquisitor_child(); |
There was a problem hiding this comment.
If I follow correctly, with "forking", the parent doesn't exit until it gets SIG_LIVENESS. Do we need to go all the way to "sd_notify" to keep the behavior similar?
There was a problem hiding this comment.
As to my knowledge I'm afraid yes.
Unless of course we totally rely on the daemons talking to each other.
There was a problem hiding this comment.
The comment in inquisitor_decouple btw. is a lie - I'll remove/correct it in the course of this PR - the inquisitor decouples once cluster-servant is online - meaning it has received it's own membership.
| [Service] | ||
| Type=forking | ||
| PIDFile=@localstatedir@/run/sbd.pid | ||
| Type=simple |
There was a problem hiding this comment.
If we make the unit file changes a configure option defaulting to forking (for now at least), then we have backward compatibility with older pacemaker
"exec" seems more useful than "simple" if we don't want to go all the way to "sd_notify"
There was a problem hiding this comment.
Well, slightly as it needs the initial fork & exec to succeed but I guess not to an extent that it is really useful for us here.
|
Although we now have startup synchronization between sbd and pacemaker, but if to switch to
|
|
|
74b3aa3 to
7881bbb
Compare
Yes, it'd for sure make sense to have a build detection/option.
Good point. |
7881bbb to
940ced8
Compare
As the name says focus is bringing sbd from a forking model to either 'simple' or 'notice' start-model in systemd.
Discussion started off in #134.
PR atm still contains changes from #134 - will be rebased once #134 is merged.