Incorrect parameter for config in systemd unit
I just installed 2.7.6 from the cloudsmith repositories using the documentation instructions; my OS is Linux Mint 21.3.
Caddy fails with the following error: Error: reading config file: open onfig: no such file or directory
After digging around I understood that the root cause of the problem is in how the systemd unit file was written, it has: ExecStart=/usr/local/bin/caddy run -config /etc/caddy/Caddyfile (instead of --config, note the 2 dashes).
Having examined this repository, I see that the file says --config (i.e. it is correct), so I am not sure why I ended up with such a file. Maybe I looked in the wrong repository; in any case - I hope that this might ring some bells to whoever builds the DEBs, so this can be fixed in the right place.
Are you sure you didn't have an old copy of the systemd config file from before? Nobody else has reported this issue and 2.7.6 has been out for a while.