scripts: Remove duplicate code from init script to set tunables
authorAmitay Isaacs <amitay@gmail.com>
Mon, 3 Sep 2012 02:39:36 +0000 (12:39 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 17 Oct 2012 00:32:41 +0000 (11:32 +1100)
commit632c1b9c1cc2e242376358ce49fd2022b3f27aa2
tree89d9e3d2370c36abd6246da7f5b1accdeea9005e
parent08dbd9c7958f9a0ee3de314d49523d32e4be135c
scripts: Remove duplicate code from init script to set tunables

The tunable variables defined in CTDB configuration file are currently
set up from init script as well as part of "setup" event in 00.ctdb
eventscript.  Remove the duplication of this code and set tunable
variables only from setup event.  During the "setup" event, it's possible
that ctdb tool commands can timeout if CTDB daemon is not ready.  To guard
against such eventuality, wait till "ctdb ping" command succeeds before
executing any other ctdb tool commands.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
config/ctdb.init
config/events.d/00.ctdb