• Matthew Holt's avatar
    core: Run startup/shutdown functions only once · 0ac8bf58
    Matthew Holt authored
    Even if defined for multiple hosts. Startup or shutdown callbacks registered by any directive (startup, shutdown, markdown, git, log, etc.) will only run as many times as it appears in the Caddyfile, not repeated for each host that shares that server block. Fixing this involved refactoring three packages (yeesh) and we need to restore some tests that are no longer valid (that used to verify splitting a multiServerBlock into multiple serverBlocks).
    0ac8bf58
server.go 6.63 KB