Fix to use API to check on command

This commit is contained in:
Ilia
2022-06-16 00:58:31 +03:00
parent 5c894525f1
commit 9d36b7c0e4

View File

@ -636,8 +636,7 @@ else {
symlink("$config_directory/.reload-init", "$config_directory/reload");
# For systemd
my $systemctlcmd = `which systemctl`;
$systemctlcmd =~ s/\s+$//;
my $systemctlcmd = &has_command('systemctl');
if (-x $systemctlcmd) {
# Clear existing