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:
committed by
Alberto Bertogli
parent
e9c6775418
commit
bb1b921e3c
@@ -93,7 +93,7 @@ func main() {
|
||||
go signalHandler()
|
||||
|
||||
if conf.MonitoringAddress != "" {
|
||||
launchMonitoringServer(conf)
|
||||
go launchMonitoringServer(conf)
|
||||
}
|
||||
|
||||
s := smtpsrv.NewServer()
|
||||
|
||||
Reference in New Issue
Block a user