I saw this movie recently, on the Sci-Fi Channel in 2016. In the movie, scientists drilling in the ground release creatures that attack during every eclipse. One of the characters is a man who takes his son and heads to his uncle's bunker.
"Day of Reckoning" (2016) is the name of the movie you're looking for!
You can find a description in this review:
During an eclipse, subterranean creatures unexpectedly rise from underground and swarm the globe attempting to exterminate mankind. Militaries of the world eventually battle back the monsters during the daylong event, which comes to be known as ‘The Day of Reckoning.’
15 Years Later – With the world bracing for another eclipse and possible creature attack, David Shepherd picks up his teenage son Tyler from his ex-wife Laura for weekend visitation. When word later breaks that an attack is imminent, Tyler sneaks away to a skate park to make sure his girlfriend Maddie is safe.
While arguing over their next course of action and who should drive, a creature kills Milton. David, Laura, Tyler, and Maddie make it to another vehicle and head to the desert outside Barstow, where David’s Uncle Ted has a fortified bunker.