We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbb9952 commit 265cad2Copy full SHA for 265cad2
nodeapp.php
@@ -43,6 +43,17 @@ public function hcpp_runuser( $cmd ) {
43
*/
44
public function hcpp_rebooted() {
45
46
+ // Wait up to 60 additional seconds for MySQL to start
47
+ $i = 0;
48
+ while ( $i < 60 ) {
49
+ $i++;
50
+ $mysql = shell_exec( 'systemctl is-active mysql' );
51
+ if ( trim( $mysql ) == 'active' ) {
52
+ break;
53
+ }
54
+ sleep( 1 );
55
56
+
57
// Restart all PM2 apps for all user accounts
58
$users = scandir('/home');
59
global $hcpp;
0 commit comments