Class SpamAssassinManager.RazorLogTrimmer

All Implemented Interfaces:
Enclosing class:

public static class SpamAssassinManager.RazorLogTrimmer extends Object implements CronJob
TODO: Make this be a standard Unix-based cron job, outside aoserv-daemon package, so that functionality remains when aoserv-daemon disabled or uninstalled.

TODO: Check for compatibility with CentOS 7

  • Constructor Details

    • RazorLogTrimmer

      public RazorLogTrimmer()
  • Method Details

    • getSchedule

      public Schedule getSchedule()
      Specified by:
      getSchedule in interface CronJob
    • run

      public void run(int minute, int hour, int dayOfMonth, int month, int dayOfWeek, int year)
      Once a day, all of the razor-agent.log files are cleaned to only include the last 1000 lines.
      Specified by:
      run in interface CronJob
    • getThreadPriority

      public int getThreadPriority()
      Specified by:
      getThreadPriority in interface CronJob