mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 06:56:15 +00:00
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
30 lines
697 B
PHP
Executable File
30 lines
697 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Services\ProcessManager;
|
|
|
|
use App\Services\ServiceInterface;
|
|
|
|
interface ProcessManager extends ServiceInterface
|
|
{
|
|
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 $user, string $logPath): string;
|
|
}
|