Any person, other than the Attorney General or a district attorney, who commences, by writ or appeal, any proceeding in the Supreme Court of California or a state court of appeal in which a violation of this chapter is alleged or any application of this chapter is in issue shall serve notice thereof upon the Attorney General within three days after the commencement of the proceeding, provided that such time may be extended by the Chief Justice or presiding justice for good cause shown. No relief, temporary or permanent, shall be granted until proof of service of this notice is filed with the court.