A single server queue with compulsory vacation has been considered. In addition admission to queue is based on a Bernoulli process and the server gives two types of services. For this model the probability generating functions of number of customers in the queue for different server states are obtained using supplementary variable technique. Some performance measures are calculated. Particular cases are deduced and some numerical examples are presented.