[Unit] Description=Verify TrueNAS CIFS mounts and heal immich after recovery After=network-online.target Wants=network-online.target [Service] Type=oneshot ExecStart=/usr/local/bin/cifs-watchdog.sh # Type=oneshot disables the start timeout by default. Every external call in # the script is already wrapped in `timeout`, but bound the unit too so a # wedged run cannot block every subsequent trigger. TimeoutStartSec={{ cifs_watchdog_timeout | default('5m') }} Nice=10