Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect parameter for config in systemd unit #110

Open
ralienpp opened this issue Jan 27, 2024 · 1 comment
Open

Incorrect parameter for config in systemd unit #110

ralienpp opened this issue Jan 27, 2024 · 1 comment
Labels
needs info Requires more information

Comments

@ralienpp
Copy link

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.

@francislavoie
Copy link
Member

francislavoie commented Jan 27, 2024

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.

@mholt mholt added the needs info Requires more information label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs info Requires more information
Projects
None yet
Development

No branches or pull requests

3 participants