diff --git a/init/atboot.pl b/init/atboot.pl index eebcbb816..22c2d1583 100755 --- a/init/atboot.pl +++ b/init/atboot.pl @@ -8,7 +8,7 @@ $product = $ARGV[0] || "webmin"; $ucproduct = ucfirst($product); $< == 0 || die "atboot.pl must be run as root"; -my $kill = &has_command("kill") || '/bin/kill'; +my $kill = &has_command("kill"); if ($init_mode eq "osx") { # Darwin System diff --git a/init/updateboot.pl b/init/updateboot.pl index 08d8af894..ee76a3d59 100755 --- a/init/updateboot.pl +++ b/init/updateboot.pl @@ -21,7 +21,7 @@ if ($product) { unlink("$p/$product"); } my $temp = &transname(); - my $killcmd = &has_command('kill') || '/bin/kill'; + my $killcmd = &has_command('kill'); $ENV{'WEBMIN_KILLCMD'} = $killcmd; ©_source_dest("$root_directory/webmin-systemd", "$temp"); my $lref = &read_file_lines($temp);