In the cases where the appointment and conditions of service are governed by statute, the relationship is that of status and not merely a contract. However, in other cases, it is purely a contract of service resulting in a relationship of ordinary master and servant. In such cases, where the contract of service is not governed by statutory provisions, it is well settled that contract of service cannot be enforced by seeking reinstatement or continuance in employment since such a relief is barred under the Specific Relief Act. In Executive Committee of U.P. State Warehousing Corporation v. C.K. Tyagi, AIR 1970 SC 1244 it was held as under:
“Under the common law the court will not ordinarily force an employer to retain the services of an employee whom he no longer wishes to employ. But this rule is subject to certain well recognized exceptions. It is open to the courts in an appropriate case to declare that a public servant who is dismissed from service in contravention of Article 311 continues to remain in service, even though by doing so the State is in effect forced to continue to employ the servant whom it does not desire to employ. Similarly under the Industrial Law, jurisdiction of the Labour and Industrial Tribunals to compel the employer to employ a worker whom he does not desire to employ, is recognized. The courts are also invested with the power to declare invalid the act of a statutory body, if by doing the act, the body has acted in breach of a mandatory obligation imposed by statute.
The position in law is that no declaration to enforce a contract of personal service will be normally granted. But there are certain well recognized exceptions to this rule and they are: to grant such a declaration in appropriate cases regarding (1) a public servant, who has been dismissed from service in contravention of Article 311 (2) Reinstatement of a dismissed worker under Industrial Law by Labour or Industrial Tribunals. (3) A staturoy body when it has acted in breach of a mandatory obligation, imposed by statute.” Ram Prasad v. State of U.P., 2019 (135) ALR 1.