~swag/armagetronad/0.2.9-sty+ct+ap-fork

« back to all changes in this revision

Viewing changes to batch/serverstarter.in

  • Committer: Manuel Moos
  • Date: 2010-06-25 12:45:36 UTC
  • mto: (563.24.74 armagetronad)
  • mto: This revision was merged to the branch mainline in revision 723.
  • Revision ID: z-man@users.sf.net-20100625124536-0crwrrzrojf7s0bj
Added passing down of $CONFIG directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
[ X"${PIDDIR}" = X"" ] && PIDDIR=${HOME}/.@prognamebase@
6
6
[ X"${VARDIR}" = X"" ] && VARDIR=${HOME}/.@prognamebase@/var
 
7
[ X"${CONFIG}" = X"" ] && CONFIG=@aa_sysconfdir_reloc@
7
8
[ X"${BINDIR}" = X"" ] && BINDIR=@prefix_reloc@/bin
8
9
 
9
10
echo $$ > ${PIDDIR}/@progname@-starter.pid
11
12
cd ${VARDIR}
12
13
 
13
14
run() {
14
 
    ${BINDIR}/@progname@@executable_suffix@ --userdatadir ${VARDIR} --daemon $* &
 
15
    #${BINDIR}/armagetronad-dedicated --configdir ${CONFIG} --userdatadir ${VARDIR} --daemon $* &
 
16
    ${BINDIR}/armagetronad-dedicated --userdatadir ${VARDIR} --daemon $* &
15
17
    jobs -p > ${PIDDIR}/@progname@.pid
16
18
    [ -s ${PIDDIR}/@progname@.pid ] || { echo "Warning: main program PID unavailable, server can't be stopped reliably."; echo $$ > ${PIDDIR}/@progname@.pid ; }
17
19
    wait