edit Configuration

@Modifying(clearAutomatically = true )
@Query(value = ""UPDATE " + SERVICES_CONFIGURATIONS_KEY + " SET " + AUTO_RUN_AFTER_HOST_REBOOT_KEY + "=:" + AUTO_RUN_AFTER_HOST_REBOOT_KEY + "," + PROGRAM_ARGUMENTS_KEY + "=:" + PROGRAM_ARGUMENTS_KEY + "," + PURGE_NOHUP_OUT_AFTER_REBOOT_KEY + "=:" + PURGE_NOHUP_OUT_AFTER_REBOOT_KEY + _WHERE_ + SERVICE_IDENTIFIER_KEY + "=:" + SERVICE_IDENTIFIER_KEY", nativeQuery = true )
abstract fun editConfiguration(@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 edit an existing configuration of a BrownieHostService

Parameters

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