#!/bin/bash
P=($*)
L=${#P[*]}
if [ $L -eq 0 ]
then
./start-all.sh
else
if [[ $1 =~ ^start$|^stop$|^restart$ ]]
then
if [[ $1 =~ stop|restart ]]
then
./stop-all.sh
fi
if [[ $1 =~ start|restart ]]
then
./start-all.sh
fi
else
echo "invalid arguement : $1"
exit 1
fi
fi