mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
Update class_app.php
Changed Minecraft restart. Now MC will restart even if Java gets stuck.
This commit is contained in:
parent
c82987b49d
commit
efbf30e0c5
@ -833,7 +833,12 @@ class AppServer {
|
||||
$script .= 'kill -9 $PID > /dev/null 2>&1' . "\n";
|
||||
$script .= 'done' . "\n";
|
||||
|
||||
$script .= 'ps x | grep -v ' . $scriptName . ' | grep ' . $screenName . ' | grep java | grep -v grep | awk \'{print $1}\' | while read PID; do' . "\n";
|
||||
$script .= 'ps x | grep -v ' . $scriptName . ' | grep ' . $screenName . ' | grep Ssl | grep java | grep -v grep | awk \'{print $1}\' | while read PID; do' . "\n";
|
||||
$script .= 'kill $PID > /dev/null 2>&1' . "\n";
|
||||
$script .= 'kill -9 $PID > /dev/null 2>&1' . "\n";
|
||||
$script .= 'done' . "\n";
|
||||
|
||||
$script .= 'ps x | grep -v ' . $scriptName . ' | grep ' . $screenName . ' | grep Ssl+ | grep java | grep -v grep | awk \'{print $1}\' | while read PID; do' . "\n";
|
||||
$script .= 'kill $PID > /dev/null 2>&1' . "\n";
|
||||
$script .= 'kill -9 $PID > /dev/null 2>&1' . "\n";
|
||||
$script .= 'done' . "\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user