On the classical KMS boundary condition