Handle container links

Ensures that linked containers are restarted if any of their
dependencies are restarted -- and makes sure that everything happens in
the correct order.
This commit is contained in:
Brian DeHamer 2015-07-14 20:51:12 +00:00
parent ce4ed7316c
commit c02c4b9ec1
12 changed files with 854 additions and 183 deletions

View file

@ -1,6 +1,7 @@
package main
import (
"fmt"
"os"
"os/signal"
"sync"
@ -50,7 +51,9 @@ func start(c *cli.Context) {
for {
wg.Add(1)
updater.Run()
if err := updater.Run(); err != nil {
fmt.Println(err)
}
wg.Done()
time.Sleep(secs)