24 lines
1.0 KiB
Bash
Executable File
24 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
SLEEP=10
|
|
while [ $SLEEP -gt 0 ]; do
|
|
echo -ne "."
|
|
sleep 1
|
|
|
|
SLEEP=$(expr "$SLEEP" - 1)
|
|
done
|
|
|
|
INSTANCE_NAME="hahah"
|
|
showHelp() {
|
|
echo "Usage: bootstrap.sh ( command ... )"
|
|
echo "commands:"
|
|
echo " start Start Instance ${INSTANCE_NAME} in a separate window"
|
|
echo " debug Start Instance ${INSTANCE_NAME} in a separate window with debug"
|
|
echo " restart Restart Instance ${INSTANCE_NAME} in a separate window"
|
|
echo " stop Stop Instance ${INSTANCE_NAME}, waiting up to 5 seconds for the process to end"
|
|
echo " stop n Stop Instance ${INSTANCE_NAME}, waiting up to n seconds for the process to end"
|
|
echo " stop -force Stop Instance ${INSTANCE_NAME}, waiting up to 5 seconds and then use kill -KILL if still running"
|
|
echo " stop n -force Stop Instance ${INSTANCE_NAME}, waiting up to n seconds and then use kill -KILL if still running"
|
|
echo "Note: Waiting for the process to end and use of the -force option require that \$INSTANCE_PID is defined."
|
|
}
|