20 lines
324 B
Bash
20 lines
324 B
Bash
#!/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 |