Call init on run.

This commit is contained in:
Daniel Theophanes
2013-03-03 17:18:51 -08:00
parent 01f0888af0
commit 8e60488e77
+7
View File
@@ -90,6 +90,13 @@ func Run(c *Config) {
c.Stop(c)
}
}()
if c.Init != nil {
err := c.Init(c)
if err != nil {
c.l.Error(err.Error())
return
}
}
c.Start(c)
case "start":
err = s.Start()