LOGSTASH-1799 Don't always restart pipe commands.

Allow the pipe to be configurable about what should happen when the command exists. Valid things todo are restart, restart on errors and never restart.