Ah, OK - that works better. I'd set ticker_interval to 0 as foo.sh would normally be a long-running process (i was expecting to end up with multiple copies running if i set it to something else).
My confusion about the retries came from this bit of the doc: "In the event the program returns a non-zero exit code, ProcessInput will stop" Which implied the plugin itself would also stop (and be subjected to the retries) if my command exited with a non-zero status. Thanks for the help! -kieren On 9 October 2014 18:20, Michael Trinkala <tr...@mozilla.com> wrote: > Set ticker_interval to 30 > > - ticker_interval (uint): > > The number of seconds to wait between each run of command. Defaults to > 15. A ticker_interval of 0 indicates that the command is run only once, > useful for long running processes. > > > Retries applies to the plugin itself and not the command it is running > > - retries (RetryOptions, optional): > > A sub-section that specifies the settings to be used for restart > behavior. See *Configuring Restarting Behavior* > > <https://hekad.readthedocs.org/en/latest/man/config.html#configuring-restarting> > > Trink > > ------------------------------ > > *From: *"Kieren Hynd" <lists-h...@tigs.org> > *To: *heka@mozilla.org > *Sent: *Thursday, October 9, 2014 10:09:56 AM > *Subject: *[heka] ProcessInput retries > > > 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 > Heka@mozilla.org > https://mail.mozilla.org/listinfo/heka > > > > _______________________________________________ > Heka mailing list > Heka@mozilla.org > https://mail.mozilla.org/listinfo/heka > >
_______________________________________________ Heka mailing list Heka@mozilla.org https://mail.mozilla.org/listinfo/heka