Fix issue with logstash restarting

A bug was introduced in d722af2df65d835dd35bdf33f2cdf3d74071e171
where logstash service would not restart after config change.