store Configuration

@Modifying(clearAutomatically = true )
@Query(value = "INSERT INTO " + SERVICES_CONFIGURATIONS_KEY + " (" + IDENTIFIER_KEY + "," + AUTO_RUN_AFTER_HOST_REBOOT_KEY + "," + PROGRAM_ARGUMENTS_KEY + "," + PURGE_NOHUP_OUT_AFTER_REBOOT_KEY + "," + SERVICE_IDENTIFIER_KEY + ") VALUES (" + ":" + IDENTIFIER_KEY + "," + ":" + AUTO_RUN_AFTER_HOST_REBOOT_KEY + "," + ":" + PROGRAM_ARGUMENTS_KEY + "," + ":" + PURGE_NOHUP_OUT_AFTER_REBOOT_KEY + "," + ":" + SERVICE_IDENTIFIER_KEY + ")", nativeQuery = true )
abstract fun storeConfiguration(@Param(value = "id") configurationId: String, @Param(value = "auto_run_after_host_reboot") autoRunAfterHostReboot: Boolean, @Param(value = "program_arguments") programArguments: String, @Param(value = "purge_nohup_out_after_reboot") purgeNohupOutAfterReboot: Boolean, @Param(value = "service_id") serviceId: String)

Query used to store a new configuration of a BrownieHostService

Parameters

configurationId

The identifier of the configuration

autoRunAfterHostReboot

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

programArguments

The program arguments

purgeNohupOutAfterReboot

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

serviceId

The identifier of the service owner