Skip to content

Commit

Permalink
init: add --force to ExecReload (caddyserver#84)
Browse files Browse the repository at this point in the history
This caddy commit[1] adds --force flag, which helps to reload tls
certificates from disk when the config does not change.

This patch add this flag to ExecReload so that we can get this benefit
when using systemctl reload.

[1]: caddyserver/caddy@2772ede
  • Loading branch information
jian-lin authored Jun 28, 2022
1 parent 2ceb535 commit 979e498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init/caddy.service
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Type=notify
User=caddy
Group=caddy
ExecStart=/usr/bin/caddy run --environ --config /etc/caddy/Caddyfile
ExecReload=/usr/bin/caddy reload --config /etc/caddy/Caddyfile
ExecReload=/usr/bin/caddy reload --config /etc/caddy/Caddyfile --force
TimeoutStopSec=5s
LimitNOFILE=1048576
LimitNPROC=512
Expand Down

0 comments on commit 979e498

Please sign in to comment.