summaryrefslogtreecommitdiff
blob: 9134a48ca8fe458b27788d7687a65ee1954fdd46 (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/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
}