emonSD next steps: filesystem & logrotate

I have now on my test system:

  • restored /etc/logrotate.conf and /etc/cron-hourly/logrotate to default
  • installed your fork of log2ram @pb66
  • applied the rsync modifcation
  • set rsync=true in log2ram.conf
  • added the logfile to the service file:
    ExecStart=/opt/emon/emonhub/src/emonhub.py --config-file=/opt/emon/data/emonhub.conf --logfile=/var/log/emonhub/emonhub.log

Created a /etc/logrotate.d/emonhub configuration containing:

/var/log/emonhub/emonhub.log
{
  rotate 2
  size 1M
  nomail
  copytruncate
  missingok
  notifempty
  compress
}

1M so that I can see this rotating sooner than later.

Is that similar to the configuration that you are using @pb66?