README | 17 +++++------------ probelist.sh | 2 +- run.sh | 3 ++- diff --git a/README b/README index 8454efe691d3b0f32fe5950f4d310f2c549679ee..87ad8dc91772a53c38a7c3783ceeaacf4b9ddf90 100644 --- a/README +++ b/README @@ -9,28 +9,21 @@ $ mkdir -p probes/jails/foobar Make probes from them: - $ cat > probes/example.com/ping4/run < probes/example.com/ping4/run < probes/example.com/http/max-attempts - $ cat > probes/example.com/ping4/run < probes/example.com/ping4/run - $ cat > probes/example.com/ping6/run < probes/example.com/ping6/run $ echo 5 > probes/example.com/ping4/period # every 5 seconds $ cat > probes/jails/foobar/run <state/stdout 2>state/stderr ; then + [ -x run ] && cmd=./run || cmd="sh -e run" + if $cmd >state/stdout 2>state/stderr ; then if [ "$attempts" -ge "$max_attempts" ] ; then "$SGMONDIR"/notify-ok.sh fi