Ver Fonte

fn_restart command_restart.sh

Daniel Gibbs há 10 anos atrás
pai
commit
54eae918bf

+ 1 - 1
lgsm/functions/command_monitor.sh

@@ -50,7 +50,7 @@ fn_monitor_teamspeak3(){
 		alert.sh
 		fn_script_log_info "Monitor is starting ${servername}"
 		sleep 1
-		fn_restart
+		command_restart.sh
 	fi
 }
 

+ 1 - 1
lgsm/functions/monitor_gsquery.sh

@@ -73,7 +73,7 @@ if [ "${gsquery}" == "yes" ]; then
 				# Send alert if enabled
 				alert="restartquery"
 				alert.sh
-				fn_restart
+				command_restart.sh
 				break
 			fi
 

+ 2 - 2
tests/tests_jc2server.sh

@@ -289,7 +289,7 @@ echo "Description:"
 echo "restart ${gamename}."
 requiredstatus="ONLINE"
 fn_setstatus
-fn_restart
+command_restart.sh
 echo ""
 echo "Test complete!"
 sleep 1
@@ -300,7 +300,7 @@ echo "Description:"
 echo "restart ${gamename} while already stopped."
 requiredstatus="OFFLINE"
 fn_setstatus
-fn_restart
+command_restart.sh
 echo ""
 echo "Test complete!"
 sleep 1

+ 2 - 2
tests/tests_ts3server.sh

@@ -273,7 +273,7 @@ echo "Description:"
 echo "restart ${gamename}."
 requiredstatus="ONLINE"
 fn_setstatus
-fn_restart
+command_restart.sh
 echo ""
 echo "Test complete!"
 sleep 1
@@ -284,7 +284,7 @@ echo "Description:"
 echo "restart ${gamename} while already stopped."
 requiredstatus="OFFLINE"
 fn_setstatus
-fn_restart
+command_restart.sh
 echo ""
 echo "Test complete!"
 sleep 1