caddyserver / dist

Resources for packaging and distributing Caddy
Apache License 2.0
116 stars 118 forks source link

init: Add an ExecStop command #93

Closed MitchellCash closed 1 year ago

francislavoie commented 1 year ago

I don't think this is necessary. By default, systemd will send SIGTERM to Caddy, which has the same effect. Why do you think it's needed?

MitchellCash commented 1 year ago

@francislavoie ah yes this is completely fair, I now see both the SIGTERM handler and POST /stop handler both end up calling the same exitProcess function.

I will close this, thanks for the info!