(PUP-1318) Service log error on failure

After a day trying to debug a really weird issue with a service failing only when puppet ran it and trying to debug why, I tried my hand at adding functionality so that when a service returns an error, it's output to the logs.

However, it dumps the full log, rather than the line by line that exec does. And I'm not sure how to write the spec, as there doesn't seem to be any service specific specs for output.

Any help appreciated! :smile: