docs: def service_resume(service_name, init_dir="/etc/init",
                     initd_dir="/etc/init.d", **kwargs):
      """Resume a system service.
  
      Reenable starting again at boot. Start the service.
  
      :param service_name: the name of the service to resume
      :param init_dir: the path to the init dir
      :param initd dir: the path to the initd dir
      :param **kwargs: additional parameters to pass to the init system when
                       managing services. These will be passed as key=value
                       parameters to the init system's commandline. kwargs
                       are ignored for systemd enabled systems.
      """
      upstart_file = os.path.join(init_dir, "{}.conf".format(service_name))
      sysv_file = os.path.join(initd_dir, service_name)
      if init_is_systemd():
          service('unmask', service_name)
          service('enable', service_name)
      elif os.path.exists(upstart_file):
          override_path = os.path.join(
              init_dir, '{}.override'.format(service_name))
          if os.path.exists(override_path):
              os.unlink(override_path)
      elif os.path.exists(sysv_file):
          subprocess.check_call(["update-rc.d", service_name, "enable"])
      else:
          raise ValueError(
              "Unable to detect {0} as SystemD, Upstart {1} or"
              " SysV {2}".format(
                  service_name, upstart_file, sysv_file))
      started = service_running(service_name, **kwargs)
  
      if not started:
          started = service_start(service_name, **kwargs)
      return started