fluent-plugin-mysql-query icon indicating copy to clipboard operation
fluent-plugin-mysql-query copied to clipboard

Cron problem

Open mareban opened this issue 8 years ago • 3 comments

Hello,

I've a strange problem ! The plugin is configured to be executed via cron once a day at a specified time !

But when i restart the fluentd agent, the plugin runs again !!!

Is it the normal behaviour ? How can the plugin run only once a day, even after a plugin restart ?

Thanks for your help.

mareban avatar Jan 28 '17 18:01 mareban

Hi, @mareban Fluentd was designed as daemon process. On launching the fluentd, it run immediately first time. And it keep sleeping for the interval time. How about launch fluentd as daemon configured with interval 24h?

y-ken avatar Jan 29 '17 14:01 y-ken

I guess you want #4 function.

y-ken avatar Jan 29 '17 14:01 y-ken

Hello,

Thanks for reply ! Yes i want #4 function ! All is ok and rufus-scheduler too because it runs every day at the specified time ! But each time i restart fluentd, it runs again (interval ?), but cron is specified ! Can the plugin run only at the specified time using cron or it is not possible without coding :) ?

Sometimes i need to change/add something in the fluentd config and restart ...

Thanks for your help.

mareban avatar Jan 30 '17 22:01 mareban