From 5e53fa68241f7f533c44fc0a017c132f04b55965 Mon Sep 17 00:00:00 2001 From: robin2008 Date: Thu, 26 Jul 2018 13:23:45 +0800 Subject: [PATCH] using execute binary of systemd to determine if systemd is enabled on this distro --- xCAT-server/sbin/xcatconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/sbin/xcatconfig b/xCAT-server/sbin/xcatconfig index b72a66d10..9d3b3f6bd 100755 --- a/xCAT-server/sbin/xcatconfig +++ b/xCAT-server/sbin/xcatconfig @@ -425,7 +425,7 @@ if ($::INITIALINSTALL || $::FORCE || $::UPDATEINSTALL) # The systemd only has LANG and PATH as default environmental variables, # TERM is needed for KVM consoles(actually screen command needs TERM) # import the TERM into systemd -if (-d "/usr/lib/systemd/system") { +if (-x "/usr/lib/systemd/systemd" || -x "/lib/systemd/systemd") { my $term = $ENV{'TERM'}; if (!$term) { $term = "vt100";