\App\ServiceModule\ModelsServiceManager

Tool for managing services

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
$initDaemon
$initDaemons
N/A

Properties

$initDaemon

$initDaemon : \App\ServiceModule\Models\IServiceManager

Type

normal — Init daemon service manager

$initDaemons

$initDaemons : string[]

Type

normal — Init daemon service managers

Methods

__construct()

__construct(string  $initDaemon, \App\CoreModule\Models\CommandManager  $commandManager) : mixed

Constructor

Parameters

string $initDaemon

Init daemon

\App\CoreModule\Models\CommandManager $commandManager

Command manager

Returns

mixed

start()

start() : void

Starts the service

Throws

\App\ServiceModule\Exceptions\NotSupportedInitSystemException

stop()

stop() : void

Stops the service

Throws

\App\ServiceModule\Exceptions\NotSupportedInitSystemException

restart()

restart() : void

Restarts the service

Throws

\App\ServiceModule\Exceptions\NotSupportedInitSystemException

getStatus()

getStatus() : string

Gets status of the service

Throws

\App\ServiceModule\Exceptions\NotSupportedInitSystemException

Returns

string —

Output from init daemon