From b4d710e9280b11fa4c61733ea28f7dd7d9c40a77 Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Thu, 9 May 2019 13:18:33 +0800 Subject: [PATCH] Add directory /etc/systemd/system/ to the systemd service search path --- xCAT/postscripts/xcatlib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT/postscripts/xcatlib.sh b/xCAT/postscripts/xcatlib.sh index e7b059494..2c6a3aa44 100755 --- a/xCAT/postscripts/xcatlib.sh +++ b/xCAT/postscripts/xcatlib.sh @@ -317,7 +317,7 @@ function servicemap { #all the service unit files are placed under /lib/systemd/system/ on ubuntu #all the service unit files are placed under /usr/lib/systemd/system/ on redhat and sles #path should be delimited with space - path="/usr/lib/systemd/system/ /lib/systemd/system/" + path="/usr/lib/systemd/system/ /lib/systemd/system/ /etc/systemd/system/" postfix=".service" svcmgrcmd="systemctl" elif [ "$svcmgrtype" = "2" ];then