(server, web_socket_port)
Kills given websockify process for a server and websocket port
    :param server: address of server
    :param web_socket_port: web socket port
    :return: boolean
Kills given websockify process for a server and websocket port
    :param server: address of server
    :param web_socket_port: web socket port
    :return: boolean
Kills given websockify process for a server and websocket port : param server : address of server : param web_socket_port : web socket port : return : boolean
def kill_web_socket(server, web_socket_port):
    """
    Kills given websockify process for a server and websocket port
    :param server: address of server
    :param web_socket_port: web socket port
    :return: boolean
    """
    logger.debug("Killing webConsole sessions")
    cmd = 'ps -ef | grep "websockify.py ' + server + ':' + web_socket_port + \
          '" | awk \'{ print $2 }\' | xargs -n 1 kill'
    logger.debug("Running cmd: " + cmd)
    rt = os.system(cmd)
    if rt == 0:
        return True
    else:
        return False
def kill_web_socket ( server , web_socket_port ) : logger . debug ( "Killing webConsole sessions" ) cmd = 'ps -ef | grep "websockify.py ' + server + ':' + web_socket_port + '" | awk \'{ print $2 }\' | xargs -n 1 kill' logger . debug ( "Running cmd: " + cmd ) rt = os . system ( cmd ) if rt == 0 : return True else : return False