Every notice or other paper which shall be required to be served on any sheriff, may be served by leaving the same at the office designated by him in such notice, during the hours for which it is required to be kept open; but if there be any person belonging to such office therein, such notice or paper shall be delivered to such person; and every such service shall be deemed equivalent to a personal service on such sheriff.