diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index 1c6deb821..5717a03bd 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -3576,6 +3576,13 @@ sub servicemap{ #"service manager name(SYSVinit/systemd) $svcmgrtype" #=> ["list of possible service file names for the specified $svcname under the specified $svcmgrtype "] # } + # + # + # if there are more than 1 possible service names for a service among + # different os distributions and os releases, the service should be + # specified in %svchash with structure + # (general service name) => {list of possible service names} + # my %svchash=( "dhcp" => ["dhcp3-server","dhcpd","isc-dhcp-server"], "nfs" => ["nfsserver","nfs-server","nfs","nfs-kernel-server"], diff --git a/xCAT/postscripts/xcatlib.sh b/xCAT/postscripts/xcatlib.sh index e6fec7fa3..d1a4d08a9 100644 --- a/xCAT/postscripts/xcatlib.sh +++ b/xCAT/postscripts/xcatlib.sh @@ -273,6 +273,11 @@ function servicemap { local svcmgrtype=$2 local svclistname= + # if there are more than 1 possible service names for a service among + # different os distributions and os releases, the service should be + # specified with structure + # INIT_(general service name) = "list of possible service names" + # INIT_dhcp="dhcp3-server dhcpd isc-dhcp-server"; INIT_nfs="nfsserver nfs-server nfs nfs-kernel-server";