summaryrefslogtreecommitdiff
blob: 6e69c06c400f5784018edf59c3f1c2cabd75455e (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 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/rtcwmp-demo/files/rtcwmp-demo-ded.rc,v 1.1 2006/01/24 17:51:36 wolf31o2 Exp $

depend() {
	need net
}

start() {
	ebegin "Starting RTCW demo dedicated server..."
	screen -A -m -d -S rtcwdemo su - dedicated -c GENTOO_DIR/startrtcwded
	eend $?
}

stop() {
	ebegin "Stopping RTCW demo dedicated server..."
	kill `screen -list | grep rtcwdemo | awk -F . '{ print $1 }' | sed -e s/.//`
	eend $?

}

status() {
	screen -list | grep rtcwdemoded
}