2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-14 16:51:30 +00:00

Add directory /etc/systemd/system/ to the systemd service search path

This commit is contained in:
GONG Jie
2019-05-09 13:18:33 +08:00
parent e333afb5d7
commit b4d710e928

View File

@ -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