Explicitly background ctdbd instead.
This has the advantage of leaving stdin open. ctdbd can then be
enhanced to exit when stdin closes, allowing better cleanup in a test
environment.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Tue Nov 6 10:30:14 CET 2018 on sn-devel-144
fast_start = true;
}
+ /* Don't fork when running in test mode */
+ interactive = interactive || test_mode != NULL;
+
/* start the protocol running (as a child) */
return ctdb_start_daemon(ctdb, !interactive);
onnode_common
- onnode "$_nodes" "${VALGRIND:-} ctdbd"
+ onnode "$_nodes" "${VALGRIND:-} ctdbd &"
}
local_daemons_stop ()