From: Martin Schwenke Date: Tue, 26 Mar 2019 04:07:43 +0000 (+1100) Subject: ctdb-tests: Update NFS test infrastructure to support systemd services X-Git-Tag: tdb-1.4.1~569 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2833ddcfcb780497264e0f412a9ad6e26a9bc657;p=thirdparty%2Fsamba.git ctdb-tests: Update NFS test infrastructure to support systemd services The tests are written around the default of sysvinit-redhat. Add support for systemd-redhat. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13860 Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/eventscripts/scripts/60.nfs.sh b/ctdb/tests/eventscripts/scripts/60.nfs.sh index 15670e76910..0b206399d00 100644 --- a/ctdb/tests/eventscripts/scripts/60.nfs.sh +++ b/ctdb/tests/eventscripts/scripts/60.nfs.sh @@ -5,6 +5,11 @@ setup () service_name="nfs" + if [ -z "$CTDB_NFS_DISTRO_STYLE" ] ; then + # Currently supported: sysvinit-redhat, systemd-redhat + CTDB_NFS_DISTRO_STYLE="sysvinit-redhat" + fi + export FAKE_RPCINFO_SERVICES="" setup_script_options <>"$_out" + guess_output "$service_stop_cmd" >>"$_out" + if [ -n "$service_debug_cmd" ] ; then $service_debug_cmd 2>&1 >>"$_out" fi