summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-fps/quake3/files/q3ded.rc')
-rw-r--r--games-fps/quake3/files/q3ded.rc24
1 files changed, 24 insertions, 0 deletions
diff --git a/games-fps/quake3/files/q3ded.rc b/games-fps/quake3/files/q3ded.rc
new file mode 100644
index 000000000000..9134a48ca8fe
--- /dev/null
+++ b/games-fps/quake3/files/q3ded.rc
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting baseq3 dedicated..."
+ export HOME=/root
+ screen -A -m -d -S q3ded su - q3 -c /opt/quake3/startq3ded
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping baseq3 dedicated..."
+ pid=`screen -list | grep q3ded | awk -F . '{ print $1 }' | sed -e s/.//`
+ kill $pid
+ eend $?
+
+}
+
+status() {
+ screen -list | grep q3ded
+}