summaryrefslogtreecommitdiff
path: root/eathena.sh
diff options
context:
space:
mode:
authorDennis Friis <peavey@inspircd.org>2009-05-31 14:00:40 +0200
committerDennis Friis <peavey@inspircd.org>2009-05-31 14:00:40 +0200
commit2ce01b41dda7f66923aca0aafccf69dcdc1e135a (patch)
tree9382cc6031fab52170a7b4d69b236a1a8cc62a3f /eathena.sh
parentf7fa7da7d234bc172133a915bcb3c41f834c7787 (diff)
downloadserverdata-2ce01b41dda7f66923aca0aafccf69dcdc1e135a.tar.gz
serverdata-2ce01b41dda7f66923aca0aafccf69dcdc1e135a.tar.bz2
serverdata-2ce01b41dda7f66923aca0aafccf69dcdc1e135a.tar.xz
serverdata-2ce01b41dda7f66923aca0aafccf69dcdc1e135a.zip
Remove these from data.
These pertain to the running of the executable and belong better in the code repo. Just symlink them into data if you do it this way around.
Diffstat (limited to 'eathena.sh')
-rwxr-xr-xeathena.sh52
1 files changed, 0 insertions, 52 deletions
diff --git a/eathena.sh b/eathena.sh
deleted file mode 100755
index 31c3a860..00000000
--- a/eathena.sh
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/bash
-
-# $Id: eathena.sh,v 1.5 2006/03/10 21:41:09 Platyna Exp $
-#----------------------------------------------------------------------
-# Description: Simple script to control eAthena locally.
-# Author: Zuzanna K. Filutowska <platyna@platinum.linux.pl>
-# Created at: Fri Feb 17 18:23:56 CET 2006
-# License: GPL
-# Copyright (c) 2006 Zuzanna K. Filutowska All rights reserved.
-#
-#----------------------------------------------------------------------
-# Configure section:
-PATH=$PATH:.
-SRVHOMEDIR=$HOME/tmwserver
-#----------------------------------------------------------------------
-# main()
-
-cd ${SRVHOMEDIR}
-
-eathena_start() {
- if [ -x ${SRVHOMEDIR}/eathena-monitor ];
- then echo "Starting eathena monitor..."
- ${SRVHOMEDIR}/eathena-monitor ${SRVHOMEDIR}/conf/eathena-monitor.conf
- else echo "Eathena monitor binary is not executable or not found."
- fi
-}
-
-eathena_stop() {
- echo "Shutting down eathena monitor..."
- killall eathena-monitor
-}
-
-eathena_restart() {
- eathena_stop
- echo "Waiting for all eathena processes to end..."
- sleep 1
- eathena_start
-}
-
-case "$1" in
-'start')
- eathena_start
- ;;
-'stop')
- eathena_stop
- ;;
-'restart')
- eathena_restart
- ;;
-*)
- echo "usage $0 start|stop|restart"
-esac