Bug 266769

Summary: www/caddy: service doesn't stop/restart properly
Product: Ports & Packages Reporter: Mark Felder <feld>
Component: Individual Port(s)Assignee: Adam Weinberger <adamw>
Status: Closed DUPLICATE    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (adamw)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Mark Felder freebsd_committer freebsd_triage 2022-10-02 18:41:12 UTC
Caddy can't stop/restart properly when you disable the admin interface in the config because those subcommands actually make HTTP requests to the admin API endpoint:

{
    admin off
}


The rc script should only use the caddy command for the config reload and do the normal stop/restart through SIGTERM
Comment 1 Adam Weinberger freebsd_committer freebsd_triage 2022-10-02 18:49:16 UTC
Are you using head or quarterly? Head had changes in the past week or two that were designed to do exactly that.

The goal is that when the admin API fails, it sends the usual signals based on the pidfile. If the version in head isn't doing that, then I need to go back to the drawing board.
Comment 2 Mark Felder freebsd_committer freebsd_triage 2022-10-02 19:22:19 UTC

*** This bug has been marked as a duplicate of bug 255106 ***