From c3e0d4352122a51c8c934ec92034139464546d69 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 27 Jun 2016 23:22:51 +0100 Subject: [PATCH] restart now has its own script --- lgsm/functions/command_restart.sh | 15 +++++++++++++++ lgsm/functions/core_functions.sh | 8 +++----- 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 lgsm/functions/command_restart.sh diff --git a/lgsm/functions/command_restart.sh b/lgsm/functions/command_restart.sh new file mode 100644 index 000000000..35f85b639 --- /dev/null +++ b/lgsm/functions/command_restart.sh @@ -0,0 +1,15 @@ +#!/bin/bash +# LGSM command_start.sh function +# Author: Daniel Gibbs +# Website: https://gameservermanagers.com +lgsm_version="210516" + +# Description: Starts the server. + +local modulename="Restarting" +function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" + +restart=1 +info_config.sh +command_stop.sh +command_start.sh \ No newline at end of file diff --git a/lgsm/functions/core_functions.sh b/lgsm/functions/core_functions.sh index 1adeb7f81..22ca78f4f 100644 --- a/lgsm/functions/core_functions.sh +++ b/lgsm/functions/core_functions.sh @@ -156,11 +156,9 @@ functionfile="${FUNCNAME}" fn_fetch_function } -fn_restart(){ -local modulename="Restarting" -info_config.sh -command_stop.sh -command_start.sh +command_restart.sh(){ +functionfile="${FUNCNAME}" +fn_fetch_function }