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")