Package net.i2p.util

Class TempDirScanner

All Implemented Interfaces:
Runnable

public class TempDirScanner extends SimpleTimer2.TimedEvent
Prevent systemd from deleting our temp dir or any dirs or files in it. Scheduled by I2PAppContext when the temp dir is created. To configure/test systemd: Edit file /usr/lib/tmpfiles.d/tmp.conf, change line D /tmp 1777 root root - to D /tmp 1777 root root 24h Ref: https://lwn.net/Articles/975565/ Ref: https://systemd.io/TEMPORARY_DIRECTORIES/ Ref: man systemd-tmpfiles; man tmpfiles.d
Since:
0.9.64
  • Constructor Details

    • TempDirScanner

      public TempDirScanner(I2PAppContext context)
      Schedules itself
  • Method Details

    • timeReached

      public void timeReached()
      Description copied from class: SimpleTimer2.TimedEvent
      Simple interface for events to be queued up and notified on expiration the time requested has been reached (this call should NOT block, otherwise the whole SimpleTimer gets backed up)
      Specified by:
      timeReached in class SimpleTimer2.TimedEvent