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

« back to all changes in this revision

Viewing changes to batch/rcd_server.in

  • Committer: z-man
  • Date: 2007-02-01 14:45:41 UTC
  • Revision ID: svn-v3-list-QlpoOTFBWSZTWZvbKhsAAAdRgAAQABK6798QIABURMgAAaeoNT1TxT1DQbKaeobXKiyAmlWT7Y5MkdJOtXDtB7w7DOGFBHiOBxaUIu7HQyyQSvxdyRThQkJvbKhs:7d95bf1e-0414-0410-9756-b78462a59f44:armagetronad%2Fbranches%2F0.2.8%2Farmagetronad:7099
Applied Belenus' unbashifying patch, but kept the #!/bin/bash for now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/bash
2
 
3
 
# script to be put in /etc/rc.d to start @progtitle@ server process
4
 
# tested on Gentoo 2004.4
5
 
# Author: Manuel Moos <manuel@moosnet.de>
6
 
#
7
 
 
8
 
# set -x
 
2
# armagetronad start script
9
3
 
10
4
# program installation directory
11
5
PROGDIR=@scriptdir_reloc@
12
6
 
13
7
# load configuration
14
 
. $PROGDIR/rcd_config
 
8
. ${PROGDIR}/rcd_config
15
9
 
16
10
# files where PIDs are stored
17
 
STARTERPIDFILE=$PIDDIR/@progname@-starter.pid
18
 
MAINPIDFILE=$PIDDIR/@progname@.pid
 
11
STARTERPIDFILE=${PIDDIR}/@progname@-starter.pid
 
12
MAINPIDFILE=${PIDDIR}/@progname@.pid
19
13
 
20
14
# program to run
21
15
BINARY=serverstarter
22
 
BINFILE=$PROGDIR/$BINARY
 
16
BINFILE=${PROGDIR}/${BINARY}
23
17
TYPE=server
24
18
 
25
19
# log file
26
 
LOGFILE=$LOGDIR/@prognamebase@.log
 
20
LOGFILE=${LOGDIR}/@prognamebase@.log
27
21
 
28
22
# delegate to common start/stop/status code
29
 
. $RCDDIR/rcd_startstop
 
23
. ${RCDDIR}/rcd_startstop