mirror of
https://github.com/samba-team/samba.git
synced 2025-02-05 21:57:51 +03:00
If $CTDB_SERVICE_AUTOSTARTSTOP="yes" then service start/stop is done in the background with logging. Fix some unit tests for samba and winbind. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 3a3dae4cb5ec8b4b8381a4013adda25b87641f3a)
19 lines
366 B
Bash
Executable File
19 lines
366 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
|
|
|
define_test "auto-stop, simple"
|
|
|
|
setup_winbind
|
|
|
|
export CTDB_SERVICE_AUTOSTARTSTOP="yes"
|
|
export CTDB_MANAGED_SERVICES="foo"
|
|
unset CTDB_MANAGES_WINBIND
|
|
|
|
ok 'Stopping service "winbind" - no longer managed'
|
|
simple_test
|
|
|
|
# This depends on output in the log file from the above test
|
|
ok 'Stopping winbind: OK'
|
|
check_ctdb_logfile
|