Answer the question
In order to leave comments, you need to log in
What about the script for logrotate?
Guys help pliz set a task of this type:
task, you need to write a script that I would copy to the ruby log folder and run with the log name parameter in this folder.
by default, let the log be production.log
and the script added a configuration to the log-rotatet so that this file does not grow more than 100 MB.
but the script did not create duplicates in the config.
maybe even restart logrotate at the same time.
let it run under root.
head script
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question