def _get_rcscript(name, jail=None):
 cmd = '{0} -r'.format(_cmd(jail))
 prf = (_get_jail_path(jail) if jail else '')
 for line in __salt__['cmd.run_stdout'](cmd, python_shell=False).splitlines():
  if line.endswith('{0}{1}'.format(os.path.sep, name)):
   return os.path.join(prf, line.lstrip(os.path.sep))
 return None

def _get_rcscript ( name , jail = None ) : cmd = '{0} -r' . format ( _cmd ( jail ) ) prf = ( _get_jail_path ( jail ) if jail else '' ) for line in __salt__ [ 'cmd.run_stdout' ] ( cmd , python_shell = False ) . splitlines ( ) : if line . endswith ( '{0}{1}' . format ( os . path . sep , name ) ) : return os . path . join ( prf , line . lstrip ( os . path . sep ) ) return None
return full path to service rc script .