blob: b89a33eca1c8163afcce5e2f7ede27adcb421ab5 (
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/openrc-run
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
depend() {
need net
}
start() {
ebegin "Starting RTCW dedicated server..."
screen -A -m -d -S rtcw su - dedicated -c GENTOO_DIR/startwolfded
eend $?
}
stop() {
ebegin "Stopping RTCW dedicated server..."
kill `screen -list | grep rtcw | awk -F . '{ print $1 }' | sed -e s/.//`
eend $?
}
status() {
screen -list | grep rtcwded
}
|