dist icon indicating copy to clipboard operation
dist copied to clipboard

Incorrect parameter for config in systemd unit

Open ralienpp opened this issue 1 year ago • 1 comments

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.

ralienpp avatar Jan 27 '24 15:01 ralienpp

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.

francislavoie avatar Jan 27 '24 17:01 francislavoie