Fix repeated restarting of puppetdb service