mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-17 17:01:37 +00:00
28 lines
604 B
PHP
Executable File
28 lines
604 B
PHP
Executable File
<?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;
|
|
}
|