50.samba eventscript should stop/start services when they become (un)managed.
authorMartin Schwenke <martin@meltin.net>
Thu, 18 Nov 2010 00:04:52 +0000 (11:04 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 18 Nov 2010 01:12:30 +0000 (12:12 +1100)
commit3ab768e8d453384c1ac83ff55d5d2aad752ffb81
tree59c0664302acf5adf14eb01cf31bd5dd3c8e9b0f
parent4fe85e5be5f1a4997da07a66ca70f351de498b1a
50.samba eventscript should stop/start services when they become (un)managed.

When the value of $CTDB_MANAGES_SAMBA or $CTDB_MANAGES_WINBIND (or
corresponding changes are made to $CTDB_MANAGED_VERSIONS), the
associated service should be started or stopped as necessary.

This add calls to ctdb_start_stop_service() to manage
starting/stopping samba and winbind.

An associated cleanup is made to the initial checks that one of
$CTDB_MANAGES_SAMBA or $CTDB_MANAGES_WINBIND is set, replacing them
with calls to is_ctdb_managed_service().

To handle the winbind cases ctdb_start_stop_service() and
is_ctdb_managed_service() are updated to take an optional service name
parameter.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit d98f175e8420d921a123ae9c0ce00945350b1537)
ctdb/config/events.d/50.samba
ctdb/config/functions