fix: service deletion

This commit is contained in:
Andras Bacsai
2024-01-31 09:58:41 +01:00
parent 1cef233db2
commit 0686e48e89
3 changed files with 8 additions and 17 deletions

View File

@@ -10,6 +10,10 @@ class StopService
use AsAction;
public function handle(Service $service)
{
$server = $service->destination->server;
if (!$server->isFunctional()) {
return 'Server is not functional';
}
ray('Stopping service: ' . $service->name);
$applications = $service->applications()->get();
foreach ($applications as $application) {