diff options
Diffstat (limited to 'selftest/target/Samba4.pm')
-rwxr-xr-x | selftest/target/Samba4.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm index d6d67f5a5ab..264eaf35007 100755 --- a/selftest/target/Samba4.pm +++ b/selftest/target/Samba4.pm @@ -1983,6 +1983,15 @@ sub teardown_env_terminate($$) my $pid; # This should cause samba to terminate gracefully + my $smbcontrol = Samba::bindir_path($self, "smbcontrol"); + my $cmd = ""; + $cmd .= "$smbcontrol samba shutdown $envvars->{CONFIGURATION}"; + my $ret = system($cmd); + if ($ret != 0) { + warn "'$cmd' failed with '$ret'\n"; + } + + # This should cause samba to terminate gracefully close($envvars->{STDIN_PIPE}); $pid = $envvars->{SAMBA_PID}; |