\App\ServiceModule\ModelsSystemDManager

Tool for managing services (systemD init daemon)

Summary

Methods
Properties
Constants
__construct()
disable()
enable()
isEnabled()
start()
stop()
restart()
getStatus()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$commandManager
$serviceName
N/A

Properties

$commandManager

$commandManager : \App\CoreModule\Models\CommandManager

Type

normal — Command Manager

$serviceName

$serviceName : string

Type

normal — Name of service

Methods

__construct()

__construct(\App\CoreModule\Models\CommandManager  $commandManager, string|null  $serviceName = null) : mixed

Constructor

Parameters

\App\CoreModule\Models\CommandManager $commandManager

Command manager

string|null $serviceName

Service name

Returns

mixed

disable()

disable() : void

Disables the service

enable()

enable() : void

Enables the service

isEnabled()

isEnabled() : \App\ServiceModule\Enums\ServiceStates

Checks if the service is enabled

Returns

\App\ServiceModule\Enums\ServiceStates —

Service state

start()

start() : void

Starts the service

stop()

stop() : void

Stops the service

restart()

restart() : void

Restarts the service

getStatus()

getStatus() : string

Gets status of the service

Returns

string —

Output from init daemon