mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Revert "Fix to use reload over restart when possible"
This reverts commit c41c8119e3.
This commit is contained in:
@@ -98,7 +98,7 @@ foreach my $k (keys %aclbackup) {
|
|||||||
}
|
}
|
||||||
&put_miniserv_config(\%miniserv);
|
&put_miniserv_config(\%miniserv);
|
||||||
|
|
||||||
&reload_miniserv();
|
&restart_miniserv();
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ print &ui_columns_end();
|
|||||||
|
|
||||||
# Finish off
|
# Finish off
|
||||||
&modify_group($group->{'name'}, $group);
|
&modify_group($group->{'name'}, $group);
|
||||||
&reload_miniserv();
|
&restart_miniserv();
|
||||||
|
|
||||||
# Print summary
|
# Print summary
|
||||||
print &text('convert_done', $converted, $invalid, $exists, $skipped),"<p>\n";
|
print &text('convert_done', $converted, $invalid, $exists, $skipped),"<p>\n";
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ $miniserv{'pamany'} = $in{'pamany'} ? $in{'pamany_user'} : undef;
|
|||||||
&put_miniserv_config(\%miniserv);
|
&put_miniserv_config(\%miniserv);
|
||||||
&unlock_file($ENV{'MINISERV_CONFIG'});
|
&unlock_file($ENV{'MINISERV_CONFIG'});
|
||||||
if ($oldsudo != $in{'sudo'}) {
|
if ($oldsudo != $in{'sudo'}) {
|
||||||
&reload_miniserv();
|
&restart_miniserv();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
&reload_miniserv();
|
&reload_miniserv();
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ foreach $host (@phosts) {
|
|||||||
print "$text{'sync_restart'}<br>\n";
|
print "$text{'sync_restart'}<br>\n";
|
||||||
if (!$in{'test'}) {
|
if (!$in{'test'}) {
|
||||||
&remote_foreign_call($serv->{'host'}, "acl",
|
&remote_foreign_call($serv->{'host'}, "acl",
|
||||||
"reload_miniserv");
|
"restart_miniserv");
|
||||||
}
|
}
|
||||||
print "$text{'refresh_done'}<p>\n";
|
print "$text{'refresh_done'}<p>\n";
|
||||||
|
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ foreach $h (@hosts) {
|
|||||||
|
|
||||||
# Restart the remote webmin
|
# Restart the remote webmin
|
||||||
print $wh &serialise_variable([ 1 ]);
|
print $wh &serialise_variable([ 1 ]);
|
||||||
&remote_foreign_call($s->{'host'}, "acl", "reload_miniserv");
|
&remote_foreign_call($s->{'host'}, "acl", "restart_miniserv");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
close($wh);
|
close($wh);
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ foreach $h (@hosts) {
|
|||||||
|
|
||||||
# Restart the remote webmin
|
# Restart the remote webmin
|
||||||
print $wh &serialise_variable([ 1 ]);
|
print $wh &serialise_variable([ 1 ]);
|
||||||
&remote_foreign_call($s->{'host'}, "acl", "reload_miniserv");
|
&remote_foreign_call($s->{'host'}, "acl", "restart_miniserv");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
close($wh);
|
close($wh);
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ foreach $h (@hosts) {
|
|||||||
|
|
||||||
# Restart the remote webmin
|
# Restart the remote webmin
|
||||||
print $wh &serialise_variable([ 1 ]);
|
print $wh &serialise_variable([ 1 ]);
|
||||||
&remote_foreign_call($s->{'host'}, "acl", "reload_miniserv");
|
&remote_foreign_call($s->{'host'}, "acl", "restart_miniserv");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
close($wh);
|
close($wh);
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ foreach $h (@hosts) {
|
|||||||
|
|
||||||
# Restart the remote webmin
|
# Restart the remote webmin
|
||||||
print $wh &serialise_variable([ 1 ]);
|
print $wh &serialise_variable([ 1 ]);
|
||||||
&remote_foreign_call($s->{'host'}, "acl", "reload_miniserv");
|
&remote_foreign_call($s->{'host'}, "acl", "restart_miniserv");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
close($wh);
|
close($wh);
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ foreach $h (@hosts) {
|
|||||||
|
|
||||||
# Restart the remote webmin
|
# Restart the remote webmin
|
||||||
print $wh &serialise_variable([ 1 ]);
|
print $wh &serialise_variable([ 1 ]);
|
||||||
&remote_foreign_call($s->{'host'}, "acl", "reload_miniserv");
|
&remote_foreign_call($s->{'host'}, "acl", "restart_miniserv");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
close($wh);
|
close($wh);
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ foreach $h (@hosts) {
|
|||||||
|
|
||||||
# Restart the remote webmin
|
# Restart the remote webmin
|
||||||
print $wh &serialise_variable([ 1 ]);
|
print $wh &serialise_variable([ 1 ]);
|
||||||
&remote_foreign_call($s->{'host'}, "acl", "reload_miniserv");
|
&remote_foreign_call($s->{'host'}, "acl", "restart_miniserv");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
close($wh);
|
close($wh);
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ foreach $w (@what) {
|
|||||||
}
|
}
|
||||||
&unlock_file("$config_directory/miniserv.users");
|
&unlock_file("$config_directory/miniserv.users");
|
||||||
&unlock_file("$config_directory/webmin.acl");
|
&unlock_file("$config_directory/webmin.acl");
|
||||||
&reload_miniserv();
|
&restart_miniserv();
|
||||||
}
|
}
|
||||||
elsif ($w eq "searches") {
|
elsif ($w eq "searches") {
|
||||||
# Copy searches directory
|
# Copy searches directory
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ else {
|
|||||||
}
|
}
|
||||||
&save_module_acl(\%uaccess, $in{'name'});
|
&save_module_acl(\%uaccess, $in{'name'});
|
||||||
}
|
}
|
||||||
&acl::reload_miniserv();
|
&acl::restart_miniserv();
|
||||||
&unlock_itsecur_files();
|
&unlock_itsecur_files();
|
||||||
&remote_webmin_log($in{'delete'} ? "delete" : $in{'new'} ? "create" : "update",
|
&remote_webmin_log($in{'delete'} ? "delete" : $in{'new'} ? "create" : "update",
|
||||||
"user", $user->{'name'}, $user);
|
"user", $user->{'name'}, $user);
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ $access{'timezone'} || &error($text{'timezone_ecannot'});
|
|||||||
&error_setup($text{'timezone_err'});
|
&error_setup($text{'timezone_err'});
|
||||||
$in{'zone'} || &error($text{'timezone_enone'});
|
$in{'zone'} || &error($text{'timezone_enone'});
|
||||||
&set_current_timezone($in{'zone'});
|
&set_current_timezone($in{'zone'});
|
||||||
&reload_miniserv();
|
&restart_miniserv();
|
||||||
&webmin_log("timezone", undef, $in{'zone'});
|
&webmin_log("timezone", undef, $in{'zone'});
|
||||||
&redirect("index.cgi?mode=zone");
|
&redirect("index.cgi?mode=zone");
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ foreach my $k (keys %oldconfig) {
|
|||||||
&write_file("$config_directory/config", \%gconfig);
|
&write_file("$config_directory/config", \%gconfig);
|
||||||
|
|
||||||
unlink("$config_directory/module.infos.cache");
|
unlink("$config_directory/module.infos.cache");
|
||||||
&reload_miniserv();
|
&restart_miniserv();
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user