The sheriff of each county shall, as soon as may be after entering upon the duties of his office, appoint some proper person undersheriff of said county, who shall also be a general deputy, to hold during the pleasure of the sheriff; and as often as a vacancy shall occur in the office of such undersheriff, or he become incapable of executing the same, another shall, in like manner, be appointed in his place.