def _sysv_is_enabled(name, runlevel=None):
 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)

def _sysv_is_enabled ( name , runlevel = None ) : 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 )
return true if the sysv service is enabled for the specified runlevel; otherwise return false .