From ad1d2ee7f4d3515c3acf2388697bc25c68f8a383 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 8 Jan 2020 11:50:29 +0100 Subject: Implement plugin/template reload on SIGUSR1 There's no way around having a global mutex, because we need to update the HTTP routes when reloading plugins. During reload we need to lock the whole server. Closes: https://todo.sr.ht/~sircmpwn/koushin/43 --- cmd/koushin/main.go | 1 - 1 file changed, 1 deletion(-) (limited to 'cmd/koushin') diff --git a/cmd/koushin/main.go b/cmd/koushin/main.go index a0382dd..eae340e 100644 --- a/cmd/koushin/main.go +++ b/cmd/koushin/main.go @@ -48,7 +48,6 @@ func main() { signal.Notify(sigs, syscall.SIGUSR1) go func() { for range sigs { - e.Logger.Printf("Reloading server") if err := s.Reload(); err != nil { e.Logger.Errorf("Failed to reload server: %v", err) } -- cgit v1.2.3