diff options
Diffstat (limited to 'plugin/file/shutdown.go')
-rw-r--r-- | plugin/file/shutdown.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugin/file/shutdown.go b/plugin/file/shutdown.go new file mode 100644 index 000000000..cecd76e9e --- /dev/null +++ b/plugin/file/shutdown.go @@ -0,0 +1,9 @@ +package file + +// OnShutdown shuts down any running go-routines for this zone. +func (z *Zone) OnShutdown() error { + if !z.NoReload { + z.reloadShutdown <- true + } + return nil +} |