blob: 3f7bf956c10a1f0034d4d22911db1164baf0d247 (
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
|
#!/sbin/openrc-run
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
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
}
|