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