diff options
author | Simon Ser <contact@emersion.fr> | 2020-01-08 11:50:29 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-01-08 11:50:29 +0100 |
commit | ad1d2ee7f4d3515c3acf2388697bc25c68f8a383 (patch) | |
tree | 9abdd117b474afade2844461a70d17f7a55632c8 /cmd | |
parent | 3d8569d185ebb6990ae7c28104fb1b3f6d7a5376 (diff) | |
download | alps-ad1d2ee7f4d3515c3acf2388697bc25c68f8a383.tar.gz alps-ad1d2ee7f4d3515c3acf2388697bc25c68f8a383.zip |
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
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/koushin/main.go | 1 |
1 files changed, 0 insertions, 1 deletions
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) } |