Service
Less than 1 minute
Service
Task wrapper responsible for launching and supervising service endpoints.
class Service extends \Hazaar\Warlock\Agent\Task\TaskProperties
childConfig
public array $childConfigname
Service name to run on the server.
public string $name = 'Unnamed Service'enabled
Whether this service task is currently enabled.
public bool $enabled = trueinfo
public array $infodelay
Startup delay in seconds.
public int $delayloglevel
Log level applied to service output.
public LogLevel $loglevel = 'LogLevel'Methods
__construct
public __construct(Main $agent, Logger $log, array $config): voidParameters
| Parameter | Type | Description |
|---|---|---|
$agent | Main | |
$log | Logger | |
$config | array |
run
Sends a service-start request to the server.
public run(): selfprocessCommand
Handles service-task specific protocol commands.
protected processCommand(PacketType $command, mixed $payload): boolParameters
| Parameter | Type | Description |
|---|---|---|
$command | PacketType | |
$payload | mixed |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:25 +0000