diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-06-30 19:30:49 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-06-30 20:57:13 -0700 |
commit | aa4df026d44bd205f8bfce8a3b8d6a1144332f32 (patch) | |
tree | 397692da57b2be8f7c083989ed37fb03308d5b2c /eathena.sh | |
parent | 7c5c2058e9aea996dc6c76a7e6d9ba4fc2a2bc77 (diff) | |
download | tmwa-aa4df026d44bd205f8bfce8a3b8d6a1144332f32.tar.gz tmwa-aa4df026d44bd205f8bfce8a3b8d6a1144332f32.tar.bz2 tmwa-aa4df026d44bd205f8bfce8a3b8d6a1144332f32.tar.xz tmwa-aa4df026d44bd205f8bfce8a3b8d6a1144332f32.zip |
Finally get around to decoupling the warning system
Diffstat (limited to 'eathena.sh')
-rwxr-xr-x | eathena.sh | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/eathena.sh b/eathena.sh deleted file mode 100755 index 98384e5..0000000 --- a/eathena.sh +++ /dev/null @@ -1,54 +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() - -ulimit -u 10 - -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 |