remove Service

open fun removeService(serviceName: String, closeSession: Boolean): String

Method to simply remove a service from a host

Return

the result of the command

Parameters

serviceName

The name of the service to remove

closeSession

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

Throws

when an exception occurred during the process