only run hook if pdnsd is running