mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Fix reload script for systemd in /etc/webmin
This commit is contained in:
2
setup.pl
2
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");
|
||||
|
||||
2
setup.sh
2
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")
|
||||
|
||||
Reference in New Issue
Block a user