From be1cac6b952c2b7dfbd7b45f6d1d32df1c16b746 Mon Sep 17 00:00:00 2001 From: Ilia Date: Tue, 14 Jun 2022 21:56:10 +0300 Subject: [PATCH] Unroll `systemd reload` for now --- web-lib-funcs.pl | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/web-lib-funcs.pl b/web-lib-funcs.pl index 7916a8fce..74669ddc8 100755 --- a/web-lib-funcs.pl +++ b/web-lib-funcs.pl @@ -2401,20 +2401,6 @@ sub reload_miniserv { my ($ignore) = @_; return undef if (&is_readonly_mode()); -if (&has_command('systemctl') && - &foreign_available("init")) { - &foreign_require("init"); - my $unit_target = - &get_product_name() eq 'usermin' ? - 'usermin' : 'webmin'; - my $unit_path = &init::get_systemd_root($unit_target); - if (-r "$unit_path/$unit_target.service") { - my $rs = &system_logged("systemctl reload $unit_target >/dev/null 2>&1