def _sysv_enabled(name):
 for match in glob.glob(('/etc/rc%s.d/S*%s' % (_runlevel(), name))):
  if re.match(('S\\d{,2}%s' % name), os.path.basename(match)):
   return True
 return False

def _sysv_enabled ( name ) : for match in glob . glob ( ( '/etc/rc%s.d/S*%s' % ( _runlevel ( ) , name ) ) ) : if re . match ( ( 'S\\d{,2}%s' % name ) , os . path . basename ( match ) ) : return True return False
a system-v style service is assumed disabled if the "startup" symlink to its script is found in /etc/init .