1. Caddy version (caddy version
): v2.4.6
v2.4.6 h1:HGkGICFGvyrodcqOOclHKfvJC0qTU7vny/7FhYp9hNw=
2. How I run Caddy:
After boot of the server using the Caddyfile.
a. System environment:
Ubuntu 20.04.3 LTS
b. Command:
caddy start --pidfile /var/run/caddy.pid --config /etc/caddy/Caddyfile
c. Service/unit/compose file:
NA
d. My complete Caddyfile or JSON config:
NA
3. The problem I’m having:
Starting Caddy with caddy start --pidfile /var/run/caddy.pid
at a prompt I can give the option --pidfile (see b.). When caddy starts at boot there is no pidfile. So my question is, can I give the option --pidfile somewhere (and how) so that the pidfile also is created at boot?
4. Error messages and/or full log output:
NA
5. What I already tried:
I put the pidfile option in the GlobaL options block of the Caddyfile. Validating the Caddyfile I got an error unrecognized global option: pidfile.
6. Links to relevant resources:
NA