for i in pe-puppetdb.service pe-puppetserver.service pe-console-services.service; do service $i stop; done sleep 30 for i in pe-puppetdb.service pe-puppetserver.service pe-console-services.service; do service $i start; done