mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
selftest:Samba4: use 'smbcontrol samba shutdown'
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13752 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Björn Baumbach <bbaumbach@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Wed Jan 30 01:51:48 CET 2019 on sn-devel-144
This commit is contained in:
parent
832776c0fc
commit
d03991f569
@ -2221,6 +2221,15 @@ sub teardown_env_terminate($$)
|
||||
my ($self, $envvars) = @_;
|
||||
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});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user