Service Configuration

@Serializable
data class ServiceConfiguration(val id: String, val programArguments: String = "", val purgeNohupOutAfterReboot: Boolean = true, val autoRunAfterHostReboot: Boolean = false)

The ServiceConfiguration class represent the configuration of a service

Author

N7ghtm4r3 - Tecknobit

Constructors

Link copied to clipboard
constructor(id: String, programArguments: String = "", purgeNohupOutAfterReboot: Boolean = true, autoRunAfterHostReboot: Boolean = false)

Properties

Link copied to clipboard
@SerialName(value = "auto_run_after_host_reboot" )
val autoRunAfterHostReboot: Boolean

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

Link copied to clipboard
val id: String

The identifier of the configuration

Link copied to clipboard
@SerialName(value = "program_arguments" )
val programArguments: String

The arguments of the program

Link copied to clipboard
@SerialName(value = "purge_nohup_out_after_reboot" )
val purgeNohupOutAfterReboot: Boolean

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