diff --git a/samba/restart.cgi b/samba/restart.cgi index 84ebe338e..3b4c8dd10 100755 --- a/samba/restart.cgi +++ b/samba/restart.cgi @@ -18,6 +18,9 @@ else { &kill_logged('TERM', @smbpids, @nmbpids); } +# Allow Samba some time to shut down +sleep(2); + if ($config{'start_cmd'}) { $rv = &system_logged("$config{'start_cmd'} >/dev/null 2>&1