b50066ef5d
- 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.
17 lines
271 B
Go
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()
|
|
}
|