def _is_proxy_running(proxyname):
 cmd = 'ps ax | grep "salt-proxy --proxyid={0}" | grep -v grep'.format(salt.ext.six.moves.shlex_quote(proxyname))
 cmdout = __salt__['cmd.run_all'](cmd, timeout=5, python_shell=True)
 if (not cmdout['stdout']):
  return False
 else:
  return True

def _is_proxy_running ( proxyname ) : cmd = 'ps ax | grep "salt-proxy --proxyid={0}" | grep -v grep' . format ( salt . ext . six . moves . shlex_quote ( proxyname ) ) cmdout = __salt__ [ 'cmd.run_all' ] ( cmd , timeout = 5 , python_shell = True ) if ( not cmdout [ 'stdout' ] ) : return False else : return True
check if proxy for this name is running .