Add warning for incorrect process running

This commit is contained in:
Jamie Cameron
2020-06-28 17:13:06 -07:00
parent 0bf0974ed7
commit e457b285d2
2 changed files with 8 additions and 0 deletions

View File

@@ -122,5 +122,12 @@ if ($starting == 2) {
}
}
# Check if something else is running
my $opid;
if (!$pid && ($opid = &is_minecraft_port_in_use())) {
print "<font color=red><b>",&text('index_portwarn', $opid),
"</b></font><p>\n";
}
&ui_print_footer("/", $text{'index'});

View File

@@ -21,6 +21,7 @@ index_downloaddesc=Click this button to download and install the latest version
index_upgradedesc=A new Minecraft server version is now available for download.
index_upgrade=Upgrade Now
index_startwarn=WARNING! A different version of Minecraft may be configured to start at boot time.
index_portwarn=WARNING! Other process with PID $1 is using using the Minecraft server port. This may be another version of the Minecraft server.
check_edir=The base directory $1 does not exist
check_ejar=The server JAR file $1 does not exist