Ocean/Shutdown/Init.go
Thorsten Sommer b50066ef5d Bug fixes and improvements
- Bugfix: The configuration collection can not have a key for the
values.
- Bugfix: It was possible, that the shutdown handler list was init to
late.
+ ConfigDB: It is now possible to write and therefore to change a
configuration value.
+ Added a few more message names for the logger.
2014-09-13 12:56:35 +02:00

17 lines
271 B
Go

package Shutdown
import "container/list"
import "os/signal"
import "os"
func init() {
shutdownHandlers = list.New()
}
func InitShutdown() {
// Apply the shutdown handler:
signal.Notify(shutdownSignal, os.Interrupt, os.Kill)
go executeShutdown()
}