VCMP-Docker/04rel64/vcmp.sh

20 lines
324 B
Bash
Raw Normal View History

2017-05-01 22:38:13 +02:00
#!/bin/bash
set -e
cd /vcmp
case "$1" in
'start')
exec nohup ./mpsvrrel64
;;
'stop')
exec killall mpsvrrel64
;;
'restart')
killall mpsvrrel64
sleep 1
exec nohup ./mpsvrrel64
;;
*)
echo "Usage: $0 start/stop/restart"
exit 1
esac