games-server/fbmuck
[portage-squeep] / games-server / fbmuck / files / fbmuck
diff --git a/games-server/fbmuck/files/fbmuck b/games-server/fbmuck/files/fbmuck
new file mode 100755 (executable)
index 0000000..65cd551
--- /dev/null
@@ -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"
+}