X-Git-Url: http://git.squeep.com/?p=portage-squeep;a=blobdiff_plain;f=games-server%2Ffbmuck%2Ffiles%2Ffbmuck;fp=games-server%2Ffbmuck%2Ffiles%2Ffbmuck;h=65cd551fbdbcb08929640ce5994d41ef759c439e;hp=0000000000000000000000000000000000000000;hb=c50a928ec26ad2ee9408a8b51872b4442386624a;hpb=90847b269c41b71c8ad42f4fa6213cfdaadba328 diff --git a/games-server/fbmuck/files/fbmuck b/games-server/fbmuck/files/fbmuck new file mode 100755 index 0000000..65cd551 --- /dev/null +++ b/games-server/fbmuck/files/fbmuck @@ -0,0 +1,29 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use dns +} + +checkconfig() { + if [ ! -f /etc/fbmucks ] ; then + eerror "Please create /etc/fbmucks" + return 1 + fi + return 0 +} + +start() { + checkconfig || return $? + + ebegin "Starting all fbmucks" + fbmuckctl start & + eend $? "Failed to start fbmucks" +} + +stop() { + ebegin "Stopping fbmucks" + fbmuckctl stop & + eend $? "Failed to stop fbmucks" +}