Windows?
Either a logrotate as well (it’s called winlogrotate), or the script:
However, since I also have a Windows Docker Desktop nodes, then I run the crond
service in WSL2, and used the same configuration for logrotate there:
$ cat /etc/logrotate.d/storagenodes
/mnt/x/storagenode2/storagenode.log
/mnt/y/storagenode3/storagenode.log
/mnt/w/storagenode5/storagenode.log
{
su root root
dateext
rotate 24
monthly
copytruncate
compress
missingok
notifempty
}
Of course, I redirected logs for the Windows node to the data location, i.e. y:\storagenode3\
with the parameter log.output:
in my config.yaml
:
log.output: winfile:///Y:\storagenode3\\storagenode.log
And to run a crond
service I executed in WSL2:
sudo service cron start
While it’s running, the logrotate is working for both - docker nodes and the Windows service node.