~ivantis/armagetronad/sty+ct+ivantis

« back to all changes in this revision

Viewing changes to batch/rcd_master.in

  • Committer: ivantis
  • Date: 2008-09-09 21:33:18 UTC
  • Revision ID: ivantis@ivantis.net-20080909213318-k43y6yuq0zd6wbsa
first commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
9
 
 
10
# program installation directory
 
11
PROGDIR=@scriptdir_reloc@
 
12
 
 
13
# load configuration
 
14
. $PROGDIR/rcd_config
 
15
 
 
16
# files where PIDs are stored
 
17
STARTERPIDFILE=$PIDDIR/@progname@-masterstarter.pid
 
18
MAINPIDFILE=$PIDDIR/@progname@-master.pid
 
19
 
 
20
# program to run
 
21
BINARY=masterstarter
 
22
BINFILE=$PROGDIR/$BINARY
 
23
TYPE=master
 
24
 
 
25
# log file
 
26
LOGFILE=$LOGDIR/@prognamebase@-master.log
 
27
 
 
28
# delegate to common start/stop/status code
 
29
. $RCDDIR/rcd_startstop
 
30