| 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/virtual-server/ |
Upload File : |
#!/usr/bin/perl
# Stop some feature-related service
require './virtual-server-lib.pl';
&ReadParse();
&can_stop_servers() || &error($text{'stop_ecannot'});
if (&indexof($in{'feature'}, @plugins) < 0) {
# Core feature
$sfunc = "stop_service_".$in{'feature'};
$err = &$sfunc($in{'id'});
$name = $text{'feature_'.$in{'feature'}};
}
else {
# Plugin
$err = &plugin_call($in{'feature'}, "feature_stop_service", $in{'id'});
$name = &plugin_call($in{'feature'}, "feature_name");
}
&error_setup($text{'stop_err'});
&refresh_startstop_status();
&error($err) if ($err);
&webmin_log("stop", $in{'feature'});
if ($in{'show'}) {
# Tell the user
&ui_print_header(undef, $text{'stop_title'}, "");
print &text('stop_done', $name),"<p>\n";
&run_post_actions();
&ui_print_footer("", $text{'index_return'});
}
elsif ($in{'redirect'}) {
&run_post_actions_silently();
&redirect($in{'redirect'});
}
else {
&run_post_actions_silently();
&redirect($ENV{'HTTP_REFERER'});
}