Hood lock suggestions

I was thinking of an electric lock, but what happens if battery goes dead? Could easily happen on cars not driven every day.
battery belongs in the trunk anyway :)