@@ -28,7 +28,6 @@ check.sh
28
28
fix.sh
29
29
info_distro.sh
30
30
info_game.sh
31
- # NOTE: Check if works with server without parms. Could be intergrated in to info_parms.sh.
32
31
fn_print_header
33
32
{
34
33
echo -e " ${lightblue} Distro:\t\t${default}${distroname} "
@@ -40,8 +39,9 @@ fn_print_header
40
39
echo -e " ${lightblue} Free Memory:\t\t${default}${physmemfree} "
41
40
echo -e " ${lightblue} Free Disk:\t\t${default}${availspace} "
42
41
} | column -s $' \t ' -t
42
+
43
43
# glibc required.
44
- if [ " ${glibc} " ]; then
44
+ if [ -n " ${glibc} " ]; then
45
45
if [ " ${glibc} " == " null" ]; then
46
46
# Glibc is not required.
47
47
:
@@ -54,7 +54,7 @@ if [ "${glibc}" ]; then
54
54
fi
55
55
fi
56
56
57
- # Server IP
57
+ # Server IP.
58
58
echo -e " ${lightblue} Game Server IP:\t${default}${ip} :${port} "
59
59
60
60
# External server IP.
@@ -63,6 +63,7 @@ if [ "${extip}" ]; then
63
63
echo -e " ${lightblue} Internet IP:\t${default}${extip} :${port} "
64
64
fi
65
65
fi
66
+
66
67
# Server password.
67
68
if [ " ${serverpassword} " ]; then
68
69
echo -e " ${lightblue} Server password:\t${default}${serverpassword} "
78
79
echo -e " ${preexecutable} ${executable} ${startparameters} "
79
80
fi
80
81
echo -e " "
81
- echo -e " Use for identifying server issues only!"
82
+ echo -e " Use debug for identifying server issues only!"
82
83
echo -e " Press CTRL+c to drop out of debug mode."
83
84
fn_print_warning_nl " If ${selfname} is already running it will be stopped."
84
85
echo -e " "
@@ -120,6 +121,18 @@ else
120
121
eval " ${preexecutable} ${executable} ${startparameters} "
121
122
fi
122
123
124
+ if [ $? -ne 0 ]; then
125
+ fn_print_error_nl " Server has stopped: exit code: $? "
126
+ fn_script_log_error " Server has stopped: exit code: $? "
127
+ fn_print_error_nl " Press ENTER to exit debug mode"
128
+ read -r
129
+ else
130
+ fn_print_ok_nl " Server has stopped"
131
+ fn_script_log_pass " Server has stopped"
132
+ fn_print_ok_nl " Press ENTER to exit debug mode"
133
+ read -r
134
+ fi
135
+
123
136
fn_lockfile_trap
124
137
125
138
fn_print_dots " Stopping debug"
0 commit comments