| Server IP : 172.67.134.114 / Your IP : 162.159.115.41 Web Server : Apache/2.4.37 System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : ricodeal ( 1046) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/libexec/webmin/samba/ |
Upload File : |
#!/usr/bin/perl
# restart.cgi
# Kill all smbd and nmdb processes and re-start them
require './samba-lib.pl';
&error_setup("$text{'eacl_aviol'}ask_epass.cgi");
&error("$text{'eacl_np'} $text{'eacl_papply'}") unless $access{'apply'};
if ($config{'stop_cmd'}) {
&system_logged("$config{'stop_cmd'} >/dev/null 2>&1 </dev/null");
}
else {
@smbpids = &find_byname("smbd");
@nmbpids = &find_byname("nmbd");
&kill_logged('TERM', @smbpids, @nmbpids);
}
&webmin_log("stop");
&redirect("");