add comment for servicemap subroutine

This commit is contained in:
immarvin 2014-07-17 08:03:58 -07:00
parent 3187579cab
commit 07d51d6e5e
2 changed files with 12 additions and 0 deletions

View File

@ -3605,6 +3605,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"],

View File

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