From 3862848b422918a81b06232febb3fa7c56c39464 Mon Sep 17 00:00:00 2001 From: Ilia Date: Wed, 15 Jun 2022 03:18:12 +0300 Subject: [PATCH] Fix reload script for `systemd` in `/etc/webmin` --- setup.pl | 2 +- setup.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.pl b/setup.pl index ef743bb60..240bdcc25 100755 --- a/setup.pl +++ b/setup.pl @@ -650,7 +650,7 @@ else { # Reload systemd open(RELOADD, ">$config_directory/reload"); - print RELOADD "$config_directory/.reload-init >/dev/null 2>&1\n"; + print RELOADD "$systemctlcmd reload webmin\n"; close(RELOADD); chmod(0755, "$config_directory/start"); diff --git a/setup.sh b/setup.sh index 74e797b69..fa0cadf90 100755 --- a/setup.sh +++ b/setup.sh @@ -701,7 +701,7 @@ if [ -x "$systemctlcmd" ]; then echo "$systemctlcmd start webmin" >>$config_dir/restart-by-force-kill # Reload systemd echo "#!/bin/sh" >>$config_dir/reload - echo "$config_dir/.reload-init >/dev/null 2>&1" >>$config_dir/reload + echo "$systemctlcmd reload webmin" >>$config_dir/reload # Fix existing systemd webmin.service file to update start and stop commands (cd "$wadir/init" ; WEBMIN_CONFIG=$config_dir WEBMIN_VAR=$var_dir "$wadir/init/updateboot.pl" "webmin")