mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Give Samba time to shut down https://sourceforge.net/p/webadmin/bugs/4329/
This commit is contained in:
@@ -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 </dev/null");
|
||||
if ($rv) { &error(&text('start_fail', $config{'start_cmd'})); }
|
||||
|
||||
Reference in New Issue
Block a user