Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/sh
- alias debug=false
- homepath="${HOME}/.unvanquished"
- wwwpath="/somewhere"
- ${HOME}/rotatelog.sh "${homepath}"
- cat > "${HOME}/command.gdb" <<EOF
- set logging file ${HOME}/gdb/gdb.log-$(date +%Y%m%d-%H%M%S)
- set logging redirect on
- set logging on
- set backtrace limit 0
- set breakpoint pending on
- break Com_Error
- run
- thread apply all bt
- quit
- EOF
- if debug
- then
- alias run_daemon="gdb --batch --quiet --command='${HOME}/command.gdb' --args ./daemonded -set vm.sgame.type 0"
- else
- alias run_daemon="./daemonded -set vm.sgame.type 1"
- fi
- cd ${HOME}/unvanquished;
- run_daemon \
- -homepath "${homepath}" \
- -pakpath "${HOME}/unvanquished/pkg" \
- -pakpath "${wwwpath}/unvanquished/pkg" \
- -pakpath "${wwwpath}/unvanquished/pkg/trem" \
- -set net_port 27960 \
- -set logs.logFile.overwrite 0 \
- +exec server.cfg
- #EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement