Eventscripts: New configuration variable CTDB_SERVICE_AUTOSTARTSTOP.
authorMartin Schwenke <martin@meltin.net>
Mon, 8 Aug 2011 03:13:59 +0000 (13:13 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 8 Aug 2011 22:01:45 +0000 (08:01 +1000)
commit0e0c4f20610f085da78d7e0b7224b8c437dceaa0
tree89a4ff9541154d7171d07b5694425d31d00417a2
parentfd3aeab959c866a1fd321a453164287cb42d758b
Eventscripts: New configuration variable CTDB_SERVICE_AUTOSTARTSTOP.

Some of the current auto-start/stop logic is broken, particularly for
Samba.  Fixing it is non-trivial.

If $CTDB_SERVICE_AUTOSTARTSTOP is "yes" then auto-start/stop services
when told to newly manage or no longer manage them.  This defaults to
"yes".

However, if using a canned configuration file that doesn't set
$CTDB_SERVICE_AUTOSTARTSTOP then this stops the auto-start-stop logic
from working.  Therefore, this works around CQ S1026685 - on the
system in question another daemon controls service auto-start/stop and
CTDB just gets in the way.

Signed-off-by: Martin Schwenke <martin@meltin.net>
config/ctdb.sysconfig
config/functions