\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
No private properties found
N/A

Methods

__construct()

__construct(\App\ServiceModule\Models\CommandManager  commandManager, string|null  serviceName = null) : 

Constructor

Parameters

\App\ServiceModule\Models\CommandManager commandManager

Command manager

string|null serviceName

Service name

Returns

disable()

disable() : 

Disables the service

Returns

enable()

enable() : 

Enables the service

Returns

isEnabled()

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

Checks if the service is enabled

Returns

\App\ServiceModule\Models\ServiceStates —

Service state

start()

start() : 

Starts the service

Returns

stop()

stop() : 

Stops the service

Returns

restart()

restart() : 

Restarts the service

Returns

getStatus()

getStatus() : 

Gets status of the service

Returns

Output from init daemon