mark Service As Stopped

@Modifying(clearAutomatically = true )
@Query(value = ""UPDATE " + SERVICES_KEY + " SET " + STATUS_KEY + "='STOPPED'," + PID_KEY + "='-1'" + _WHERE_ + HOST_IDENTIFIER_KEY + "=:" + HOST_IDENTIFIER_KEY + " AND " + PID_KEY + "=:" + PID_KEY", nativeQuery = true )
abstract fun markServiceAsStopped(@Param(value = "host_id") hostId: String, @Param(value = "pid") pid: Long)

Query used to mark a service as STOPPED

Parameters

hostId

The identifier of the host owner of the service

pid

The pid of the service to mark