Hi!
ProcessInput and ProcessDirectoryInput both have a "retries" config in the
docs, but i'm having trouble making that work - if the "bin" defined in the
"command"section exits, nothing is restarted. Here's an example of my
config:
[ProcessInput]
parser_type = "token"
stdout = true
stderr = true
ticker_interval = 0
[ProcessInput.command.0]
bin = "/path/to/foo.sh"
[ProcessInput.retries]
max_delay = "30s"
delay = "250ms"
max_retries = 5
I've tried various combinations of the above ("foo.sh" sleeps for a couple
of seconds then exits with a non-zero status), Heka spits out:
2014/10/09 18:01:48 Input 'ProcessInput' error: ProcessInput
CommandChain::Wait() error: [Subcommand returned an error: [exit status 1]]
But that's about it.... foo.sh isn't respawned :(
Am i wrong in thinking the command should be restarted?
(i've tried both 0.7.2 and the Git HEAD)
Cheers,
-kieren
_______________________________________________
Heka mailing list
[email protected]
https://mail.mozilla.org/listinfo/heka