Methods |
public
|
async(): GenericSystemdService
|
#
|
public
static
|
irregular(): bool
Service has failed/exited abnormally
Service has failed/exited abnormally
Overridden by
|
#
|
public
static
|
failed(): bool
|
#
|
public
static
|
reset(): bool
|
#
|
public
static
|
running(): bool
|
#
|
public
static
|
state(): string|null
Unit's activate state May be of form active, activating, failed, reloading, deactivating, or inactive
Unit's activate state May be of form active, activating, failed, reloading, deactivating, or inactive
Returns
|
#
|
public
static
|
status(string|array $fields = []): mixed
Parameters
$fields |
optional fields to filter
|
|
#
|
public
static
|
unitInfo(string|array $fields = []): mixed
|
#
|
public
static
|
getReportedServiceStatus(): array|null
Get service status from services implementing reporting
Get service status from services implementing reporting
Overridden by
|
#
|
public
static
|
exists(): bool
Service exists on machine
Service exists on machine
|
#
|
public
static
|
reload(string $timespec = null): bool
|
#
|
public
static
|
restart(string|null $timespec = null): bool
|
#
|
public
static
|
run(string $command, string|null $timespec = null): bool
Parameters
$command |
systemd command to run on service
|
$timespec |
optional asynchronous delay
|
|
#
|
public
static
|
daemonReload(): void
|
#
|
final
public
static
|
listAll(string $pattern = '*', string|null $state = null): array
Parameters
$pattern |
service pattern to match
|
$state |
optional state
|
|
#
|
public
static
|
listAllNg(string $pattern = '*', string $state = null): array
|
#
|
public
static
|
waitFor(int $seconds = 10): bool
Wait for service activation
Wait for service activation
Parameters
|
#
|
public
static
|
escapePath(string $path): string
Convert systemd path into service
Convert systemd path into service
|
#
|
public
static
|
present(): bool
Service is present based on configuration
Service is present based on configuration
|
#
|