• Matthew Holt's avatar
    startup: Only run commands at first startup · 5cced604
    Matthew Holt authored
    We had to hack some special support into the server and caddy packages for this. There are some middlewares which should only execute commands when the original parent process first starts up. For example, someone using the startup directive to start a backend service would not expect the command to be executed every time the config was reloaded or changed - only once when they first started the original caddy process.
    
    This commit adds FirstStartup to the virtualhost config
    5cced604
server.go 13.9 KB