26 lines
No EOL
353 B
Bash
26 lines
No EOL
353 B
Bash
#! /bin/sh
|
|
|
|
cd $(dirname "$0")
|
|
|
|
SRV_LIST="moore noyce hamano cpp"
|
|
|
|
ACTIONS="start stop restart"
|
|
|
|
for ACT in $ACTIONS
|
|
do
|
|
if [ -n "$1" ] && [ "$1" == "$ACT" ]
|
|
then
|
|
ACTION="$ACT"
|
|
break
|
|
fi
|
|
done
|
|
|
|
if [ -z "$ACTION" ]
|
|
then
|
|
echo "Usage: $0 [$ACTIONS]"
|
|
fi
|
|
|
|
for SRV in $SRV_LIST
|
|
do
|
|
ssh root@$SRV ~/liblerdorf/process/launch.sh "$ACTION"
|
|
done |