This commit is contained in:
Saeed Vaziry
2023-07-02 12:47:50 +02:00
commit 5c72f12490
825 changed files with 41659 additions and 0 deletions

View File

@ -0,0 +1,27 @@
<?php
namespace App\Contracts;
interface ProcessManager
{
public function create(
int $id,
string $command,
string $user,
bool $autoStart,
bool $autoRestart,
int $numprocs,
string $logFile,
?int $siteId = null
): void;
public function delete(int $id, int $siteId = null): void;
public function restart(int $id, int $siteId = null): void;
public function stop(int $id, int $siteId = null): void;
public function start(int $id, int $siteId = null): void;
public function getLogs(string $logPath): string;
}