git: ec2084ee9a16 - 2023Q4 - www/caddy: Add reloadssl rc(8) command

From: Adam Weinberger <adamw_at_FreeBSD.org>
Date: Sat, 14 Oct 2023 02:21:17 UTC
The branch 2023Q4 has been updated by adamw:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ec2084ee9a16358571a69a73192d70c02b2e1aff

commit ec2084ee9a16358571a69a73192d70c02b2e1aff
Author:     Tom MTT <tom@heimdall.pm>
AuthorDate: 2023-10-12 02:18:43 +0000
Commit:     Adam Weinberger <adamw@FreeBSD.org>
CommitDate: 2023-10-14 02:20:00 +0000

    www/caddy: Add reloadssl rc(8) command
    
    `service caddy reloadssl` instructs Caddy to reload its TLS
    certificates. This is useful when using Caddy with ACME DNS
    providers, as it allows for the renewal of certificates without
    manually deleting the old ones and restarting Caddy.
    
    PR:             274085
    (cherry picked from commit 528ac9e77df40d5e8bf424b8a1255be4d2986ec9)
---
 www/caddy/files/caddy.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/caddy/files/caddy.in b/www/caddy/files/caddy.in
index 17724715ae5c..8e46cd93aae9 100644
--- a/www/caddy/files/caddy.in
+++ b/www/caddy/files/caddy.in
@@ -70,9 +70,10 @@ else
 fi
 
 # Extra Commands
-extra_commands="configtest reload"
+extra_commands="configtest reload reloadssl"
 configtest_cmd="caddy_execute validate ${caddy_flags}"
 reload_cmd="caddy_execute reload ${caddy_flags}"
+reloadssl_cmd="caddy_execute reload --force ${caddy_flags}"
 
 caddy_execute()
 {