stop Service

Method used to stop a service

Return

the result of the command

Parameters

service

The service to stop

Throws

when an exception occurred during the process


open fun stopService(service: BrownieHostService, closeSession: Boolean): String

Method used to stop a service

Return

the result of the command

Parameters

service

The service to stop

closeSession

Whether close the current bash session (like Runtime or SSH if remote host)

Throws

when an exception occurred during the process