[CTDB] Some patches

Martin Schwenke martin at meltin.net
Thu Jul 11 19:07:38 MDT 2013


On Thu, 4 Jul 2013 12:11:35 +0200, Mathieu Parent
<math.parent at gmail.com> wrote:

> 2013/7/4 Martin Schwenke <martin at meltin.net>:

> > Amitay and I discussed this again today.  We think it would improve
> > maintainability if we moved most of the current initscript into a
> > separate script called, say, ctdbd_wrapper.  For starting ctdbd, the
> > wrapper would build the command-line options, wait until ctdbd is ready
> > and other miscellaneous things.  For stopping ctdbd, the wrapper would
> > do most of what the current initscript stop code does... but perhaps a
> > little tidier.  Then both the initscript and systemd could call
> > ctdbd_wrapper and it would do all of the "heavy lifting".  This seems
> > simpler than having an extra include file and several systemd scripts.
> >
> > This would leave the initscript and systemd configuration nice and lean.
> >
> > We could then support a configuration file such as /etc/ctdb/ctdb.conf,
> > expecting configuration to be done there instead
> > of /etc/sysconfig/ctdb. ctdb.conf could still be a shell script and
> > could have a meaningfully named manpage.  For the forseeable future,
> > ctdbd_wrapper would still load /etc/sysconfig/ctdb for backward
> > compatibility.  In the long term, only the initscript (and, I guess,
> > some systemd magic?) would use /etc/sysconfig/ctdb.
> >
> > Does that sound like a good idea?  If so then I'll implement it
> > tomorrow...
> 
> I like it!

This is in CTDB 2.3, along with much-simplified systemd support.

peace & happiness,
martin


More information about the samba-technical mailing list