mailiverse/deploy/server-restart

22 lines
360 B
Plaintext
Raw Normal View History

2013-08-09 17:31:37 -04:00
if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi
source ./config.hosts
2013-08-16 15:34:54 -04:00
server=$M_HOST_PROD
2013-08-09 17:31:37 -04:00
echo stopping...
ssh $1@$server "cd deploy && ./shutdown"
sleep 2
echo starting...
ssh $1@$server "cd deploy && ./run"
echo tailing...
sleep 2
ssh $1@$server "tail run.log"
echo ...
echo "***** remember to restart mail-user if you restart-james *****"