Skip to content

[FR] Reduce unnecessary disk IO #1958

@nukedupe

Description

@nukedupe

Feature Request

Context

check-for-changes.sh script is constantly (every second) hashing and writing unnecessary to host filesystem.

Is your Feature Request related to a Problem?

Reduce unnecessary disk IO.

Describe the Solution you'd like

Wait and hash only if change was detected.

Are you going to implement it?

I have just a quick hack but it depends on package inotify-tools.
I have added in check-for-changes.sh before line 46:

  inotifywait -r \
          /tmp/docker-mailserver \
          /etc/letsencrypt/acme.json \
          "/etc/letsencrypt/live"

But this snippet is not heavily. Have just add it to my container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions