(2)Notwithstanding that a person holding a civil post under the Union or a State holds office during the pleasure of the President or, as the case may be, of the Governor [* * *] [The words " or Rajpramukh" omitted by the Constitution (Seventh Amendment) Act, 1956, Section 29 and Schedule. ] of the State, any contract under which a person, not being a member of a defence service or of an all-India service or of a civil service of the Union or a State, is appointed under this Constitution to hold such a post may, if the President or the Governor [* * *] [The words " or the Rajpramukh" omitted by the Constitution (Seventh Amendment) Act, 1956, Section 29 and Schedule. ], as the case may be, deems it necessary in order to secure the services of a person having special qualifications, provide for the payment to him of compensation, if before the expiration of an agreed period that post is abolished or he is, for reasons not connected with any misconduct on his part, required to vacate that post.