Skip to content

Add inotify or incron to reload/restart services that depend on SSL cert #33

@hi-liang

Description

@hi-liang

Currently nginx reloads every 6 hours to catch new certificate (which should be fine given the working renewal window via certbot).

mqtt (and bridges) however currently do not.

From eclipse-mosquitto/mosquitto#524, there seems to be debate whether SIGHUP actually works given the need to drop any existing clients anyhow, so maybe just kill and restart mosquitto / container entirely.

So maybe add something like

$(while inotifywait -e close_write /etc/letsencrypt; do ([SIGHUP or SIGKILL? mosquitto pid]) ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions