def _get_rcvar(name, jail=None):
 if (not available(name, jail)):
  log.error('Service {0} not found'.format(name))
  return False
 cmd = '{0} {1} rcvar'.format(_cmd(jail), name)
 for line in __salt__['cmd.run_stdout'](cmd, python_shell=False).splitlines():
  if ('_enable="' not in line):
   continue
  (rcvar, _) = line.split('=', 1)
  return rcvar
 return None

def _get_rcvar ( name , jail = None ) : if ( not available ( name , jail ) ) : log . error ( 'Service {0} not found' . format ( name ) ) return False cmd = '{0} {1} rcvar' . format ( _cmd ( jail ) , name ) for line in __salt__ [ 'cmd.run_stdout' ] ( cmd , python_shell = False ) . splitlines ( ) : if ( '_enable="' not in line ) : continue ( rcvar , _ ) = line . split ( '=' , 1 ) return rcvar return None
return rcvar .