coolify/app/Actions/Server/StopSentinel.php

18 lines
335 B
PHP
Raw Permalink Normal View History

2024-06-18 14:42:42 +00:00
<?php
namespace App\Actions\Server;
use App\Models\Server;
use Lorisleiva\Actions\Concerns\AsAction;
class StopSentinel
{
use AsAction;
public function handle(Server $server)
{
instant_remote_process(['docker rm -f coolify-sentinel'], $server, false);
$server->sentinelHeartbeat(isReset: true);
2024-06-18 14:42:42 +00:00
}
}