Greetings,
I'm facing a strange issue here with the salt-minions. Basically the first thing is, that a salt-minion keeps the handle on a log file open after the log file has been rotated. You can point this out by running something like this on your minion:
lsof -n | grep deleted | grep log
To fix or rather work around this issue, I have added a `service-salt-minion restart` to the logrotate, the logrotate config salt-common now looks like this:
/var/log/salt/master
/var/log/salt/minion
/var/log/salt/*.log
{
weekly
missingok
rotate 7
compress
notifempty
postrotate
service salt-minion restart
endscript
}
Now, going through my Cron mails which are sent every day I see the following for the mails on Sunday (yes, this doesn't seem to happen on other days!):
Restarting salt minion control daemon: salt-minion.
Restarting salt minion control daemon: salt-minion.
Restarting salt minion control daemon: salt-minion.
The salt-minion the seems to be running three times, I'm seeing the affected hosts on the salt-master more than one time as well.
Every host as well as the Salt Master is running 2015.5.3+ds-1~bpo70+2 on Debian Wheezy.
Thanks for any ideas on how to solve this & Best Regards,
Dominic