mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
Minor file changes
This commit is contained in:
parent
0e9417e669
commit
4f8b995d89
12 changed files with 58 additions and 7 deletions
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue