\App\ServiceModule\ModelsIServiceManager

Interface for tools for managing service

Summary

Methods
Constants
__construct()
start()
stop()
restart()
getStatus()
No constants found
No protected methods found
N/A
No private methods 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

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