Allow to configure pipe restart behaviour

Follow-up of #942 - LOGSTASH-1799 Don't always restart pipe commands.
@colinsurprenant can you have a final look at it please.