add
Service
suspend fun addService(hostId: String, serviceName: String, programArguments: String, purgeNohupOutAfterReboot: Boolean, autoRunAfterHostReboot: Boolean): JsonObject
Request to add a service to a host
Return
the response of the request as JsonObject
Parameters
host Id
The identifier of the host
service Name
The name of the service
program Arguments
The arguments of the program
purge Nohup Out After Reboot
Whether the nohup.out file related to
the service must be deleted at each service start
auto Run After Host Reboot
Whether the service must be automatically restarted after the host start or the host restart