mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
Minor file changes
This commit is contained in:
parent
0e9417e669
commit
4f8b995d89
12 changed files with 58 additions and 7 deletions
|
|
@ -42,5 +42,5 @@ script:
|
|||
- test -d _build || mkdir _build
|
||||
- test -d _install || mkdir _install
|
||||
- cd _build
|
||||
- cmake .. -DCMAKE_INSTALL_PREFIX=../_install -DSOAP=1 -DPLAYERBOTS=1
|
||||
- cmake .. -DCMAKE_INSTALL_PREFIX=../_install -DSOAP=1 -DPLAYERBOTS=0
|
||||
- make -j4
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
* MaNGOS is a full featured server for World of Warcraft, supporting
|
||||
* the following clients: 1.12.x, 2.4.3, 3.3.5a, 4.3.4a and 5.4.8
|
||||
*
|
||||
* Copyright (C) 2005-2019 MaNGOS project <https://getmangos.eu>
|
||||
* Copyright (C) 2005-2020 MaNGOS <https://getmangos.eu>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# MaNGOS is a full featured server for World of Warcraft, supporting
|
||||
# the following clients: 1.12.x, 2.4.3, 3.3.5a, 4.3.4a and 5.4.8
|
||||
#
|
||||
# Copyright (C) 2005-2015 MaNGOS <http://getmangos.eu>
|
||||
# Copyright (C) 2005-2020 MaNGOS <https://getmangos.eu>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# MaNGOS is a full featured server for World of Warcraft, supporting
|
||||
# the following clients: 1.12.x, 2.4.3, 3.3.5a, 4.3.4a and 5.4.8
|
||||
#
|
||||
# Copyright (C) 2005-2020 MaNGOS <http://getmangos.eu>
|
||||
# Copyright (C) 2005-2020 MaNGOS <https://getmangos.eu>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
* MaNGOS is a full featured server for World of Warcraft, supporting
|
||||
* the following clients: 1.12.x, 2.4.3, 3.3.5a, 4.3.4a and 5.4.8
|
||||
*
|
||||
* Copyright (C) 2005-2020 MaNGOS <http://getmangos.eu>
|
||||
* Copyright (C) 2005-2020 MaNGOS <https://getmangos.eu>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -88,8 +88,8 @@ FILE* openWoWExe()
|
|||
}
|
||||
|
||||
/**
|
||||
* This function loads up a binary file (WoW executable), then searches for a specified
|
||||
* group of hex values in order to locate and return the Build # of the file
|
||||
* This function loads up a binary file (WoW executable), then searches for and returns
|
||||
* the build number of the file. The build number is searched for in hex form.
|
||||
*
|
||||
* @PARAM sFilename is the filename of the WoW executable to be loaded
|
||||
* @RETURN iBuild the build number of the WoW executable, or 0 if failed
|
||||
|
|
|
|||
16
src/tools/restart-scripts/mangos.sh
Normal file
16
src/tools/restart-scripts/mangos.sh
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
#For Debian based distributions only
|
||||
#Change the path variable that matches your own
|
||||
#Do not add a trailing slash
|
||||
path="/home/mangos/server/bin"
|
||||
SESSION="mangos"
|
||||
DAEMON="screen -d -m -S $SESSION $path/mangos_check.sh"
|
||||
screen -r $SESSION -ls -q 2>&1 >/dev/null
|
||||
echo -e ""
|
||||
echo "Mangos World has been launched into the background."
|
||||
echo -e ""
|
||||
if [ $? -le 10 ]; then
|
||||
echo "Restarting $DAEMON"
|
||||
$DAEMON
|
||||
fi
|
||||
wait
|
||||
9
src/tools/restart-scripts/mangos_check.sh
Normal file
9
src/tools/restart-scripts/mangos_check.sh
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
#For Debian based distributions only
|
||||
#Change the path variable that matches your own
|
||||
path="/home/mangos/server/bin"
|
||||
while true; do
|
||||
cd $path
|
||||
./realmd
|
||||
wait
|
||||
done
|
||||
16
src/tools/restart-scripts/realmd.sh
Normal file
16
src/tools/restart-scripts/realmd.sh
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
#For Debian based distributions only
|
||||
#Change the path variable that matches your own
|
||||
#Do not add a trailing slash
|
||||
path="/home/mangos/server/bin"
|
||||
SESSION="realmd"
|
||||
DAEMON="screen -d -m -S $SESSION $path/realmd_check.sh"
|
||||
screen -r $SESSION -ls -q 2>&1 >/dev/null
|
||||
echo -e ""
|
||||
echo "Realmd has been launched into the background."
|
||||
echo -e ""
|
||||
if [ $? -le 10 ]; then
|
||||
echo "Restarting $DAEMON"
|
||||
$DAEMON
|
||||
fi
|
||||
wait
|
||||
10
src/tools/restart-scripts/realmd_check.sh
Normal file
10
src/tools/restart-scripts/realmd_check.sh
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
#For Debian based distributions only
|
||||
#Change the path variable that matches your own
|
||||
#Do not add a trailing slash
|
||||
path="/home/mangos/server/bin"
|
||||
while true; do
|
||||
cd $path
|
||||
./mangos
|
||||
wait
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue