\App\ServiceModule\ModelsDockerSupervisorManager

Tool for managing services (supervisord init daemon in a Docker container)

Summary

Methods
Properties
Constants
__construct()
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

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