Commit 82cf4505 authored by Rafael Monnerat's avatar Rafael Monnerat

monitor: Add missingok for log rotate, if he has no file to rotate.

parent 0cae04b7
......@@ -484,7 +484,7 @@ class Monitoring(object):
# Rotate monitor data files
option_list = [
'daily', 'nocreate', 'olddir %s' % self.data_folder, 'rotate 5',
'nocompress', 'extension .json', 'dateext',
'nocompress', 'missingok', 'extension .json', 'dateext',
'dateformat -%Y-%m-%d', 'notifempty'
]
file_list = [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment