1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-23 15:37:01 +00:00

Add /exit endpoint to monitoring server

Allows terminating chasquid via the network. Useful to trigger a restart
(if there is an init system to relaunch chasquid) and thus reload certificates.

Amended-by: Alberto Bertogli <albertito@blitiri.com.ar>
  Added tests, and adjusted shutdown sequence.
This commit is contained in:
ThinkChaos
2020-10-31 21:46:47 +01:00
committed by Alberto Bertogli
parent e9c6775418
commit bb1b921e3c
4 changed files with 50 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ func main() {
go signalHandler()
if conf.MonitoringAddress != "" {
launchMonitoringServer(conf)
go launchMonitoringServer(conf)
}
s := smtpsrv.NewServer()