blob: e2c8fe7e3c337041d6f66b2e02bf90a6e0fd9f00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/sbin/runscript
# Copyright 2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/americas-army/files/armyops-ded.rc,v 1.2 2004/09/28 01:58:30 mr_bones_ Exp $
depend() {
use net
}
start() {
ebegin "Starting Americas Army Server"
cd /opt/americas-army/System
start-stop-daemon --start --chuid games \
--background --make-pidfile \
--pidfile /var/run/armyopsserver.pid \
--exec ./server-bin -- ${SERVERTYPE} ${MAP} log=${LOGFILE} ini=${INIFILE}
eend $?
}
stop() {
ebegin "Stopping Americas Army Server"
start-stop-daemon --stop --quiet --pidfile /var/run/armyopsserver.pid
rm /var/run/armyopsserver.pid
eend $?
}
|