Ensure that logstash is stopped and started

The service is stopped while the new configuration files are written,
then started once the configuration files are complete.