An injunction to suspend the general and ordinary business of a corporation can not be granted without due notice of the application therefor to the proper officers or managing agent of the corporation, except when the people of this state are a party to the proceeding.
Ca. Civ. Proc. Code § 531