We used to put a line of wire up away from the yard fence, and electrify it, turning it on when the hogs came around. A few times of that the hogs headed for less painful pastures! As for coyotes, the wire put a serious crimp in their advances, and a .22 ending the burgeoning careers of the more hardy! We had all the neighbors keeping mum on the ‘control operations’ in the interest of protecting their children for the critters! (I imagine if I look around my files, I still have that fence charger schematic somewhere, let me know if you want it.)