hashicorp / hashicorp/serf

Event handlers run in blocking manner

Open
#369 1 comment 0 reactions 0 assignees View on GitHub
WaitingForReply
Dominant language
Go
Stars
6.1k
Forks
609
Avg merge
15h 1m
Merged PRs (30d)
3

Description

I'm running serf through command line on 4 vagrant machines.
The following queries are executed
serf query shell "sleep 10"
serf query shell "ls /usr"

The event handler is defined as
# !/bin/bash

if [ "${SERF_EVENT}" = "query" ]; then
if [ "${SERF_QUERY_NAME}" = "shell" ]; then
while read line; do
$line&
done
fi
fi
I get the following message:
![screen shot 2016-01-20 at 12 28 51 pm](https://cloud.githubusercontent.com/assets/16764395/12441937/e99a5234-bf71-11e5-976c-0b9c8a6c1237.png)
![screen shot 2016-01-20 at 12 28 35 pm](https://cloud.githubusercontent.com/assets/16764395/12441939/eb4daf22-bf71-11e5-8899-32e9babe09bc.png)

Also, the query response is not seen on remote nodes.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.