Methods |
public
|
async(): GenericSystemdService
Set async mode
|
#
|
public
static
|
irregular(): bool
Service has failed/exited abnormally
Service has failed/exited abnormally
Overriden by
|
#
|
public
static
|
failed(): bool
Service has failed
|
#
|
public
static
|
reset(): bool
Reset service state
|
#
|
public
static
|
running(): bool
Service is running
|
#
|
public
static
|
state(): string|null
Unit's activate state
Unit's activate state
May be of form active, activating, failed, reloading, deactivating, or inactive
Returns
|
#
|
public
static
|
status(string|array $fields = []): mixed
Get full service status
Parameters
$fields |
optional fields to filter
|
|
#
|
public
static
|
unitInfo(string|array $fields = []): mixed
Service unit information
|
#
|
public
static
|
getReportedServiceStatus(): array|null
Get service status from services implementing reporting
Get service status from services implementing reporting
Overriden by
|
#
|
public
static
|
exists(): bool
Service exists on machine
Service exists on machine
|
#
|
public
static
|
reload(string $timespec = null): bool
Reload service
|
#
|
public
static
|
restart(string|null $timespec = null): bool
Restart the service
|
#
|
public
static
|
run(string $command, string|null $timespec = null): bool
Run systemd command
Parameters
$command |
systemd command to run on service
|
$timespec |
optional asynchronous delay
|
|
#
|
public
static
|
daemonReload(): void
Reload systemd daemon
|
#
|
final
public
static
|
listAll(string $pattern = '*', string|null $state = null): array
Show all services
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
|
#
|