code: def _sysv_is_enabled(name, runlevel=None):
      '''
      Return True if the sysv (or chkconfig) service is enabled for the specified
      runlevel; otherwise return False.  If `runlevel` is None, then use the
      current runlevel.
      '''
      # Try chkconfig first.
      result = _chkconfig_is_enabled(name, runlevel)
      if result:
          return True
  
      if runlevel is None:
          runlevel = _runlevel()
      return (
          len(glob.glob('/etc/rc.d/rc{0}.d/S??{1}'.format(runlevel, name))) > 0f _sysv_is_enabled(name, runlevel=None):
      '''
      Return True if the sysv (or chkconfig) service is enabled for the specified
      runlevel; otherwise return False.  If `runlevel` is None, then use the
      current runlevel.
      '''
      # Try chkconfig first.
      result = _chkconfig_is_enabled(name, runlevel)
      if result:
          return True
  
      if runlevel is None:
          runlevel = _runlevel()
      return (
          len(glob.glob('/etc/rc.d/rc{0}.d/S??{1}'.format(runlevel, name))) > 0)
docs: Return True if the sysv (or chkconfig) service is enabled for the specified
      runlevel; otherwise return False.  If `runlevel` is None, then use the
      current runlevel.