Archived
1
0
Fork 0
This repository has been archived on 2021-10-08. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
ACU/commands/manage-server.sh
2013-09-15 15:27:05 +02:00

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