diff options
Diffstat (limited to 'games-server/hlstats/files/hlstats.rc')
-rw-r--r-- | games-server/hlstats/files/hlstats.rc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/games-server/hlstats/files/hlstats.rc b/games-server/hlstats/files/hlstats.rc new file mode 100644 index 000000000000..4d8fa07b1dd3 --- /dev/null +++ b/games-server/hlstats/files/hlstats.rc @@ -0,0 +1,23 @@ +#!/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/hlstats/files/hlstats.rc,v 1.1 2003/09/10 05:51:11 vapier Exp $ + +depend() { + need mysql +} + +start() { + ebegin "Starting hlstats" + /usr/bin/hlstats & + local ret=$? + echo $! > /var/run/hlstats.pid + eend ${ret} +} + +stop() { + ebegin "Stopping hlstats" + local pid=$(</var/run/hlstats.pid) + [ ! -z "${pid}" ] && kill ${pid} + eend $? +} |