The invention relates to a compound of formula (I) wherein R1 to R4 are defined as in the description and in the claims. The compound of formula (I) is a CB2 receptor agonist for use in the treatment of several disorders, such as pain, atherosclerosis and glaucoma.