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

hostId

The identifier of the host

serviceName

The name of the service

programArguments

The arguments of the program

purgeNohupOutAfterReboot

Whether the nohup.out file related to the service must be deleted at each service start

autoRunAfterHostReboot

Whether the service must be automatically restarted after the host start or the host restart