You find your safe area, where there's going to be no people in the middle of the night. Then you've got to get a chicken and a string. You get trained up to stop when you scent the chicken, so you make your boundary with it so you don't leave the area.
Dunno if there's a better system. Been doing it since I was a pup.