# Incron A 'cron' daemon that watches the filesystem for changes and performs actions. This is used to auto-apply config for Caddy and Unbound. This is here mainly to facilitate auto-reloads of Caddy/Unbound during setup and over time. This is especially helpful if using acme.sh for Let's Encrypt certificates as they are regularly updated and once updated need a restart of the Caddy service. This config takes care of that situation as well as updated DNS records in Unbound. ## Inspiration / Sources - [https://www.cyberciti.biz/faq/linux-inotify-examples-to-replicate-directories/](https://www.cyberciti.biz/faq/linux-inotify-examples-to-replicate-directories/) ## Install ``` bash apt update apt install incron systemctl enable incron systemctl start incron ``` ## Configure ### Unbound ``` bash cat > /etc/incron.d/unbound.conf < /etc/incron.d/caddy.conf < /etc/incron.d/acme-sh.conf <