mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 15:10:25 +00:00
Update HealthCheck.php
This commit is contained in:
parent
83e312d064
commit
b9ae90c9f9
1 changed files with 11 additions and 0 deletions
|
@ -39,5 +39,16 @@ class HealthCheck extends Command
|
|||
shell_exec('service supervisor start');
|
||||
}
|
||||
|
||||
// Check Apache2
|
||||
$this->info('Checking Apache2...');
|
||||
$apache2Status = shell_exec('service apache2 status');
|
||||
if (Str::contains($apache2Status, 'active (running)')) {
|
||||
$this->info('Apache2 is running');
|
||||
} else {
|
||||
$this->error('Apache2 is not running');
|
||||
$this->info('Starting Apache2...');
|
||||
shell_exec('service apache2 start');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue