#!/bin/sh

# shellcheck disable=SC1090
# shellcheck disable=SC2034
# shellcheck disable=SC2154

# audit_webmin
#
# Turn off webmin if it is not being used.
#.

audit_webmin () {
  print_function "audit_webmin"
  string="Webmin Daemon"
  check_message  "${string}"
  if [ "${os_name}" = "SunOS" ]; then
    if [ "${os_version}" = "10" ] || [ "${os_version}" = "11" ]; then
      check_sunos_service "svc:/application/management/webmin:default" "disabled"
    fi
  else
    na_message "${string}"
  fi
}
