summaryrefslogtreecommitdiff
blob: 0fa289dc12be6b4563525fc1bbb895597ef0eaea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-server/tetrix/files/tetrix.rc,v 1.1 2003/09/21 04:47:33 vapier Exp $

depend() {
	need net
}

start() {
	ebegin "Starting TetriNET Server"
	/usr/games/bin/tetrix -q
	eend $?
}

stop() {
	ebegin "Stopping TetriNET Server"
	[ -e /var/run/tetrix.pid ] && kill $(</var/run/tetrix.pid)
	eend $? "Could not kill tetrix server :("
}