store Service

open fun storeService(serviceName: String, servicePath: String, hostId: String, programArguments: String, purgeNohupOutAfterReboot: Boolean, autoRunAfterHostReboot: Boolean)

Method used to store a new service

Parameters

serviceName

The name of the service

servicePath

The path of the service inside the filesystem of the host

hostId

The identifier of the host owner of the service

programArguments

The program arguments

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