mirror of
https://git.freebsd.org/ports.git
synced 2025-07-05 11:29:15 -04:00
- stop using kill-9 - support for cqlsh While i'm here, fix plist and some whitespace issues. PR: 163295 Submitted by: Radim Kolar <hsn at sendmail dot cz> Approved by: maintainer (timeout, 3 weeks+)
12 lines
275 B
Bash
12 lines
275 B
Bash
#! /bin/sh
|
|
set -e
|
|
PATH=/bin:/usr/bin:%%LOCALBASE%%/bin:%%PREFIX%%/bin
|
|
NODETOOL=%%DATADIR%%/bin/nodetool
|
|
|
|
if test $# -eq 0; then
|
|
echo "$0 <any node in cluster>"
|
|
exit 1;
|
|
fi
|
|
for i in `$NODETOOL -h $1 ring | cut -d ' ' -f 1 | grep -e '^[0-9]'`; do
|
|
$NODETOOL -h $i repair
|
|
done
|