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:11:30 +0000 (12:11 +1100)
commitd02348ed053cb7c0cf7d53ef14aed15553d67816
tree98cbb42e2758b8313925106824df071e5be4c799
parent028e2a43edec784b0bb871d39975bc0abc6fd7b2
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>
config/events.d/50.samba
config/functions